Skip to content

Commit f1e6ed7

Browse files
updated active state
1 parent 779b809 commit f1e6ed7

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

lib/styles/components/_dropdown.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,16 @@
109109

110110
&--disabled {
111111
cursor: not-allowed;
112-
color: rgb(var(--neeto-ui-gray-500));
112+
opacity: 0.5;
113113
}
114114

115-
&:hover:not(:disabled),
116-
&:focus {
115+
&:hover:not(:disabled):not(.neeto-ui-dropdown__popup-menu-item-btn--active),
116+
&:focus:not(:disabled):not(.neeto-ui-dropdown__popup-menu-item-btn--active){
117117
background-color: rgb(var(--neeto-ui-gray-200));
118118
}
119119

120-
&--active:not(:hover, :focus) {
121-
background-color: rgb(var(--neeto-ui-gray-800));
120+
&--active {
121+
background-color: rgb(var(--neeto-ui-primary-500));
122122
color: rgb(var(--neeto-ui-white));
123123
}
124124

stories/Components/Dropdown.stories.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export const Default = (args) => {
5656
{listItems.map((item, idx) => (
5757
<MenuItem.Button key={idx}>{item}</MenuItem.Button>
5858
))}
59+
<MenuItem.Button isActive>Active</MenuItem.Button>
60+
<MenuItem.Button isDisabled>Disabled</MenuItem.Button>
5961
<Divider />
6062
<MenuItem.Button style="danger">Delete</MenuItem.Button>
6163
</Menu>

0 commit comments

Comments
 (0)