Skip to content

Commit

Permalink
add aria-disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nariakiraHara committed Apr 3, 2024
1 parent e343a60 commit a873596
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const SelectTagInput = <T, >({
ref={element => textInputRef.current = element}
style={[style, styles.textInput]}
accessible={!disabled}
aria-disabled={disabled}
value={textValue}
multiline={false}
placeholder={placeholder}
Expand Down
1 change: 1 addition & 0 deletions packages/topotal-ui/src/components/TagInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export const TagInput = memo<Props>(({
ref={element => ref.current = element}
style={[style, styles.textInput]}
accessible={!disabled}
aria-disabled={disabled}
value={textValue}
multiline={false}
placeholder={placeholder}
Expand Down
1 change: 1 addition & 0 deletions packages/topotal-ui/src/components/TextArea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export const TextArea = forwardRef(({
{...rest}
value={value}
accessible={!disabled}
aria-disabled={disabled}
autoCapitalize={autoCapitalize}
multiline
placeholderTextColor={placeholderColor}
Expand Down
1 change: 1 addition & 0 deletions packages/topotal-ui/src/components/TextInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const TextInput = memo<Props>(({
<BaseInput
{...rest}
accessible={!disabled}
aria-disabled={disabled}
value={innerValue}
autoCapitalize={autoCapitalize}
placeholderTextColor={placeholderColor}
Expand Down

0 comments on commit a873596

Please sign in to comment.