mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 21:21:19 +08:00
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:
@ -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"
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user