Skip to content

Commit

Permalink
fix(dropdown): remove excess border of first dropdown element (#11400)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

#11271 

Closes #11271 

### Description

Just querying first element of dropdown and removing its `border-block-start-width`

### Changelog

**Changed**

- updated `dropdown.scss` with 5 new lines
  • Loading branch information
ko1ebayev authored Feb 2, 2024
1 parent 3574065 commit a0830b0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright IBM Corp. 2019, 2023
// Copyright IBM Corp. 2019, 2024
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -101,6 +101,12 @@ $css--plex: true !default;
}
}

:host(#{$prefix}-dropdown-item:first-child) {
.#{$prefix}--list-box__menu-item__option {
border-block-start-width: 0;
}
}

:host(#{$prefix}-dropdown-item:hover) {
background-color: $layer-hover;
}
Expand Down

0 comments on commit a0830b0

Please sign in to comment.