A11Y: fix topic admin menu button colors for WCAG colors (#27007)

* A11Y: fix topic admin menu button colors for WCAG colors

* do not duplicate attr
This commit is contained in:
Kris 2024-05-14 01:03:17 -04:00 committed by GitHub
parent 094d2a7187
commit 9b70cbf4bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 9 deletions

View File

@ -88,10 +88,9 @@ export default class TopicAdminMenu extends Component {
<DMenu
@identifier="topic-admin-menu"
@onRegisterApi={{this.onRegisterApi}}
@triggerClass="toggle-admin-menu"
@modalForMobile={{true}}
@autofocus={{true}}
@class="btn-default btn-icon"
@triggerClass="btn-default btn-icon toggle-admin-menu"
>
<:trigger>
{{icon "wrench"}}

View File

@ -12,12 +12,9 @@
}
html.discourse-no-touch {
.btn-default:not(.btn-flat, .btn-danger, .btn-primary),
.btn-icon:not(.btn-flat, .btn-danger, .btn-primary) {
&.btn-default {
.d-icon {
color: var(--primary-medium);
}
.btn-default {
.d-icon {
color: var(--primary-medium);
}
&:hover,
&.btn-hover,
@ -32,7 +29,7 @@ html.discourse-no-touch {
}
.btn-icon.ok,
.btn-icon.cancel,
.btn-danger:not(.btn-flat) {
.btn-danger:not(.btn-flat, .btn-transparent) {
.d-icon {
color: var(--secondary);
}