Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .storybook/test-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ module.exports = {
await configureAxe(page, {
// TODO: Ideally would have a selector target for the storybook's sb main body element
rules: [
{
id: 'color-contrast',
selector: 'body *:not([data-a11y-ignore="color-contrast"])'
},
{
id: 'aria-hidden-focus',
selector: 'body *:not([data-a11y-ignore="aria-hidden-focus"])',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ function EditableSegment({segment, state}: DatePickerSegmentProps) {
minWidth: segment.maxValue != null ? String(segment.maxValue).length + 'ch' : null
}}
data-testid={segment.type}>
{/* TODO: double check this, color contrast issue with quiet placeholder */}
<span data-a11y-ignore="color-contrast" aria-hidden="true" className={classNames(styles, 'react-spectrum-DatePicker-placeholder')}>{segment.placeholder}</span>
<span aria-hidden="true" className={classNames(styles, 'react-spectrum-DatePicker-placeholder')}>{segment.placeholder}</span>
{segment.isPlaceholder ? '' : segment.text}
</div>
);
Expand Down