feat: add aria-labels for accessibility in AddVariablesDropdown and ToolbarPlugin components (#20260)
This commit is contained in:
@@ -15,7 +15,7 @@ export const AddVariablesDropdown = (props: IAddVariablesDropdown) => {
|
||||
|
||||
return (
|
||||
<Dropdown>
|
||||
<DropdownMenuTrigger className="focus:bg-muted pt-[6px]">
|
||||
<DropdownMenuTrigger aria-label="Add variable" className="focus:bg-muted pt-[6px]">
|
||||
<div className="items-center ">
|
||||
{props.isTextEditor ? (
|
||||
<>
|
||||
|
||||
@@ -470,6 +470,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
|
||||
<>
|
||||
{!props.excludedToolbarItems?.includes("bold") && (
|
||||
<Button
|
||||
aria-label="Bold"
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
type="button"
|
||||
@@ -482,6 +483,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
|
||||
)}
|
||||
{!props.excludedToolbarItems?.includes("italic") && (
|
||||
<Button
|
||||
aria-label="Italic"
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
type="button"
|
||||
@@ -495,6 +497,7 @@ export default function ToolbarPlugin(props: TextEditorProps) {
|
||||
{!props.excludedToolbarItems?.includes("link") && (
|
||||
<>
|
||||
<Button
|
||||
aria-label="Link"
|
||||
color="minimal"
|
||||
variant="icon"
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user