Skip to content

Commit

Permalink
fix(core): change aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
ninaandal committed Feb 19, 2024
1 parent 1f3b999 commit 12f814b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ export const ActionMenu = memo(function ActionMenu(props: ActionMenuProps) {
const active = activeKeys.includes(action.key)
return (
<CollapseMenuButton
aria-label={t('toolbar.portable-text.action-button-aria-label', {action: action.key})}
aria-label={t('toolbar.portable-text.action-button-aria-label', {
action: action.title || action.key,
})}
data-testid={`action-button-${action.key}`}
disabled={disabled || annotationDisabled}
mode="bleed"
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/src/core/i18n/bundles/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ export const studioLocaleStrings = defineLocalesResources('studio', {
/** Label for missing change version for timeline menu dropdown are showing */
'timeline.since-version-missing': 'Since: unknown version',
/**Aria label for the action buttons in the PTE toolbar */
'toolbar.portable-text.action-button-aria-label': 'Action button for {{action}}',
'toolbar.portable-text.action-button-aria-label': '{{action}}',
/** Label for the button showed after trial ended */
'user-menu.action.free-trial-finished': 'Upgrade from free',
/** Label for button showing the free trial days left */
Expand Down

0 comments on commit 12f814b

Please sign in to comment.