Skip to content

Commit

Permalink
remove yet to be used component to fix aria live text
Browse files Browse the repository at this point in the history
  • Loading branch information
joakbjerk committed Dec 1, 2023
1 parent dedbd43 commit 2f437ee
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/dnb-eufemia/src/components/date-picker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,9 @@ function DatePicker(externalProps: DatePickerProps) {
</span>
</span>

<DatePickerLiveText />
<p className="dnb-sr-only" aria-live="assertive">
{selectedDateTitle}
</p>
</span>
</DatePickerProvider>
)
Expand All @@ -806,11 +808,3 @@ function DatePicker(externalProps: DatePickerProps) {
export default DatePicker

DatePicker._supportsSpacingProps = true

function DatePickerLiveText() {
return (
<p className="dnb-sr-only" aria-live="assertive">
{selectedDateTitle}
</p>
)
}

0 comments on commit 2f437ee

Please sign in to comment.