Skip to content

Commit 94326ff

Browse files
author
Javad Shariati
committed
feat: support ole prop in RcSelect for accessibility
1 parent c2dc268 commit 94326ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Select.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ export interface SelectProps<ValueType = any, OptionType extends BaseOptionType
179179
onChange?: (value: ValueType, option?: OptionType | OptionType[]) => void;
180180
classNames?: Partial<Record<SemanticName, string>>;
181181
styles?: Partial<Record<SemanticName, React.CSSProperties>>;
182+
183+
// >>> Accessibility
184+
// https://github.com/ant-design/ant-design/issues/46030
185+
// https://github.com/ant-design/ant-design/issues/53713
186+
// https://github.com/ant-design/ant-design/pull/55185#discussion_r2389642896
187+
role?: string;
182188
}
183189

184190
function isRawValue(value: DraftValueType): value is RawValueType {

0 commit comments

Comments
 (0)