Skip to content

Commit

Permalink
fix(27817): VoiceOver announcing dropdown for Timepicker as button (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kapilkashyap authored Dec 29, 2023
1 parent 5b06fa9 commit 66300ca
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,18 @@ export const TimePickerDateTimePickerExample: React.FC = () => {
<Stack tokens={stackTokens} styles={stackStyles}>
<Label>{'DatePicker and TimePicker combination'}</Label>
<div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gridColumnGap: '3px' }}>
<DatePicker placeholder="Select a date..." value={datePickerDate} onSelectDate={onSelectDate} />
<DatePicker
placeholder="Select a date..."
value={datePickerDate}
onSelectDate={onSelectDate}
ariaLabel="Date picker"
/>
<TimePicker
placeholder="Select a time"
dateAnchor={datePickerDate}
value={currentTime}
onChange={onTimePickerChange}
ariaLabel="Time picker"
/>
</div>
<Text>{`⚓ Date anchor: ${datePickerDate.toString()}`}</Text>
Expand Down

0 comments on commit 66300ca

Please sign in to comment.