Skip to content

Commit

Permalink
fix: added type button to pop up button for html block editor (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni authored Jan 16, 2024
1 parent 19b9617 commit 5305939
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/customizations/volto/components/manage/Blocks/HTML/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ class Edit extends Component {
aria-label={this.props.intl.formatMessage(messages.source)}
active={!this.state.isPreview}
onClick={this.onCodeEditor}
type="button"
>
<Icon name={codeSVG} size="24px" />
</Button>
Expand All @@ -275,6 +276,7 @@ class Edit extends Component {
aria-label={this.props.intl.formatMessage(messages.preview)}
active={this.state.isPreview}
onClick={this.onPreview}
type="button"
>
<Icon name={showSVG} size="24px" />
</Button>
Expand All @@ -290,6 +292,7 @@ class Edit extends Component {
basic
aria-label={this.props.intl.formatMessage(messages.prettier)}
onClick={this.onPrettify}
type="button"
>
<Icon name={indentSVG} size="24px" />
</Button>
Expand All @@ -302,7 +305,12 @@ class Edit extends Component {
<Popup
trigger={
<Button.Group>
<Button icon basic onClick={() => this.onChangeCode('')}>
<Button
icon
basic
type="button"
onClick={() => this.onChangeCode('')}
>
<Icon name={clearSVG} size="24px" color="#e40166" />
</Button>
</Button.Group>
Expand Down

0 comments on commit 5305939

Please sign in to comment.