Skip to content

Commit

Permalink
fix: 文言修正
Browse files Browse the repository at this point in the history
  • Loading branch information
daiHash committed Nov 26, 2024
1 parent 45c6dad commit 6bfc5e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/smarthr-ui/src/components/Textarea/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const getStringLength = (value: string | number | readonly string[]) => {

const TEXT_BEFORE_MAXLETTERS_COUNT = 'あと'
const TEXT_AFTER_MAXLETTERS_COUNT = '文字'
const TEXT_AFTER_MAXLETTERS_COUNT_EXCEEDED = '超過'
const TEXT_AFTER_MAXLETTERS_COUNT_EXCEEDED = 'オーバー'

const textarea = tv({
slots: {
Expand Down Expand Up @@ -253,8 +253,8 @@ export const Textarea = forwardRef<HTMLTextAreaElement, Props & ElementProps>(
<textarea
{...props}
{...textareaStyleProps}
{...(maxLetters && { 'aria-describedby': `${maxLettersNoticeId} ${actualMaxLettersId}` })}
data-smarthr-ui-input="true"
aria-describedby={`${maxLettersNoticeId} ${actualMaxLettersId}`}
onChange={handleChange}
ref={textareaRef}
aria-invalid={hasInputError || undefined}
Expand All @@ -274,7 +274,7 @@ export const Textarea = forwardRef<HTMLTextAreaElement, Props & ElementProps>(

<VisuallyHiddenText aria-live="polite">{srCounterMessage}</VisuallyHiddenText>
<VisuallyHiddenText id={maxLettersNoticeId}>
こちらは文字カウンター付きの入力欄です。最大{maxLetters}文字まで入力できます
最大{maxLetters}文字入力できます
</VisuallyHiddenText>
</span>
) : (
Expand Down

0 comments on commit 6bfc5e6

Please sign in to comment.