mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Add :focus styles to match :hover styles
Add :focus styles to the .habitica-menu-dropdown. These match the existing :hover styles.
This commit is contained in:
@@ -290,6 +290,7 @@ div
|
|||||||
margin-right: 24px;
|
margin-right: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:focus /deep/ .top-menu-icon.svg-icon,
|
||||||
&:hover /deep/ .top-menu-icon.svg-icon {
|
&:hover /deep/ .top-menu-icon.svg-icon {
|
||||||
color: $white;
|
color: $white;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,11 +12,17 @@ A simplified dropdown component that doesn't rely on buttons as toggles like bo
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '~client/assets/scss/colors.scss';
|
@import '~client/assets/scss/colors.scss';
|
||||||
|
.habitica-menu-dropdown {
|
||||||
|
&:hover,
|
||||||
|
&:focus { // NB focus styles match the hover styles for .svg-icon
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
.habitica-menu-dropdown.open {
|
&.open {
|
||||||
.habitica-menu-dropdown-toggle .svg-icon {
|
.habitica-menu-dropdown-toggle .svg-icon {
|
||||||
color: $white !important;
|
color: $white !important;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style lang='scss' scoped>
|
<style lang='scss' scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user