Skip to content

Commit 39774a0

Browse files
authored
fix: set the hover and focus color on dropdown item (#1960)
This fix ensures that the color of the text on the dropdown item is set whenever you hover or focus anywhere on the dropdown item. Closes #1950
1 parent 22b204a commit 39774a0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

packages/mgt-components/src/components/mgt-people-picker/mgt-people-picker.scss

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,15 @@ mgt-people-picker .root {
117117
border-radius: 4px;
118118
&:hover {
119119
background-color: $dropdown-item__background-color--hover;
120+
.people-person-text-area {
121+
color: $dropdown-item__text__color--hover;
122+
}
120123
}
121124
&.focused {
122125
background-color: $dropdown-item__background-color--hover;
126+
.people-person-text-area {
127+
color: $dropdown-item__text__color--hover;
128+
}
123129
}
124130
.people-person-text-area {
125131
margin-left: 13px;
@@ -128,14 +134,6 @@ mgt-people-picker .root {
128134
overflow: hidden;
129135
color: $dropdown-item__text__color;
130136

131-
&:hover {
132-
color: $dropdown-item__text__color--hover;
133-
}
134-
135-
&.focused {
136-
color: $dropdown-item__text__color--hover;
137-
}
138-
139137
.people-person-text {
140138
font-size: 14px;
141139
font-weight: normal;

0 commit comments

Comments
 (0)