Skip to content

Commit

Permalink
TINY-10732: Fallback FooterToggleButton in dialog to use `spec.text…
Browse files Browse the repository at this point in the history
…` to set the `aria-label` attribute (#9470)
  • Loading branch information
shanmen-tiny committed Mar 5, 2024
1 parent 43769de commit df7b989
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ const renderToggleButton = (spec: FooterToggleButtonSpec, providers: UiFactoryBa
borderless: false
};

const tooltipAttributes = buttonSpec.tooltip.map<{}>((tooltip) => ({
const tooltipAttributes = buttonSpec.tooltip.or(spec.text).map((tooltip) => ({
'aria-label': providers.translate(tooltip),
})).getOr({});

Expand Down

0 comments on commit df7b989

Please sign in to comment.