UX: Add flat text button styles and use in date/time cancel modal (#17892)

Also fixes an A11Y issue with the date/time cancel button.
This commit is contained in:
Penar Musaraj
2022-08-15 15:06:03 -04:00
committed by GitHub
parent 0d6fd1a606
commit b930f4886a
6 changed files with 42 additions and 17 deletions

View File

@ -156,9 +156,10 @@
@label="discourse_local_dates.create.form.insert" />
{{/if}}
<a class="cancel-action" href {{action "cancel"}}>
{{i18n "cancel"}}
</a>
<DButton
@class="btn-flat"
@action={{action "cancel"}}
@translatedLabel={{i18n "cancel"}} />
<DButton
@class="btn-default advanced-mode-btn"

View File

@ -58,14 +58,6 @@ div[data-tippy-root] {
content: none;
}
.cancel-action {
margin: 0 5px 5px 0;
}
.btn + .cancel-action {
margin-left: 1em;
}
.advanced-mode-btn {
margin-left: auto;
}