Skip to content

Commit

Permalink
refactor: replace button by a link
Browse files Browse the repository at this point in the history
  • Loading branch information
Aboubacar authored and derrabauke committed Dec 18, 2023
1 parent bd1c013 commit 2c1055b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 0 additions & 9 deletions packages/-ember-caluma/app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,3 @@ pre.hljs {
margin: 0;
border: none;
}

.reset {
color: var(--brand-primary);
display: block;
}

.reset:hover {
cursor: pointer;
}
6 changes: 4 additions & 2 deletions packages/form/addon/components/cf-field/input/radio.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
</label>
{{/each}}
{{#if (and (eq @field.question.raw.isRequired "false") this.checkedValue)}}
<button {{on "click" this.resetSelected}} class="reset" type="button">{{t
<br />
<a href="#" {{on "click" this.resetSelected}}>{{t
"caluma.form.power-select.reset"
}}</button>
}}</a>

{{/if}}

0 comments on commit 2c1055b

Please sign in to comment.