Skip to content

Commit

Permalink
fix(a11y): Added a type for the button (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
egordidenko authored Jul 2, 2024
1 parent 825b8b7 commit af1d6b6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blocks/CloudImageEditor/src/EditorButtonControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class EditorButtonControl extends Block {
}

EditorButtonControl.template = /* HTML */ `
<button role="option">
<button type="button" role="option">
<lr-icon set="@name: icon;"></lr-icon>
<div class="title" ref="title-el">{{title}}</div>
</button>
Expand Down
2 changes: 1 addition & 1 deletion blocks/CloudImageEditor/src/EditorFilterControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class EditorFilterControl extends EditorButtonControl {
}

EditorFilterControl.template = /* HTML */ `
<button role="option">
<button type="button" role="option">
<div class="preview" ref="preview-el"></div>
<lr-icon ref="icon-el" set="@name: icon; @size: iconSize;"></lr-icon>
</button>
Expand Down
2 changes: 1 addition & 1 deletion blocks/CloudImageEditor/src/elements/button/LrBtnUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class LrBtnUi extends Block {
LrBtnUi.bindAttributes({ text: 'text', icon: 'icon', reverse: 'reverse', theme: 'theme' });

LrBtnUi.template = /* HTML */ `
<button set="@role:aria-role; @aria-controls: aria-controls">
<button type="button" set="@role:aria-role; @aria-controls: aria-controls">
<lr-icon set="className: iconCss; @name: icon; @hidden: !icon"></lr-icon>
<div class="text">{{text}}</div>
</button>
Expand Down
2 changes: 1 addition & 1 deletion blocks/SourceBtn/SourceBtn.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class SourceBtn extends UploaderBlock {
}

SourceBtn.template = /* HTML */ `
<button>
<button type="button">
<lr-icon set="@name: iconName"></lr-icon>
<div class="txt" l10n="src-type"></div>
</button>
Expand Down

0 comments on commit af1d6b6

Please sign in to comment.