Closed michael-milette closed 4 months ago
Any color that you choose, it happens the same. Would be great if this were selectable...
I partially solved adding in Raw SCSS: .dropdown-item:hover { background-color: #999600 ; } I'm still trying to find how to change the color for the first one that is always highlighted (using the up/down arrows moves along the menu but with the original color).
Hello @promosyofertas,
@michael-milette told me this issue and I fixed but just for Moodle 4.0, that still in beta now. This issue was solved with the focus-within. I'll add to master ASAP.
This is the code:
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:focus-within {
background-color: lighten($primary, 20%);
color: choose-contrast-color($primary);
}
Thank you for your help guys!
Thank you! Any chance it can be fixed for currently supported versions of Moodle?
Thank you! Any chance it can be fixed for currently supported versions of Moodle?
@michael-milette, if you add what @rmady posted in Raw SCSS box you can fix it. It's not perfect because is taking the base color for "painting" but it's a good solution.
@rmady, it would be great if this could be selectable in the theme...
This will be fixed in the next major release of Trema. In the meantime, please feel free to try the experimental "dev" branch.
Best regards,
Michael
The foreground and background colours are the same.
This is an accessibility and usability issue.