ui: Round hover styles for ListItem
s with outlined
set (#22120)
This PR makes `ListItem`s with `outlined` set use the same rounding for their hover state to ensure that the hover background doesn't bleed outside of the outline. Release Notes: - N/A
This commit is contained in:
parent
8e71e46867
commit
d11deff3c2
1 changed files with 1 additions and 0 deletions
|
@ -202,6 +202,7 @@ impl RenderOnce for ListItem {
|
||||||
.when(self.selectable, |this| {
|
.when(self.selectable, |this| {
|
||||||
this.hover(|style| style.bg(cx.theme().colors().ghost_element_hover))
|
this.hover(|style| style.bg(cx.theme().colors().ghost_element_hover))
|
||||||
.active(|style| style.bg(cx.theme().colors().ghost_element_active))
|
.active(|style| style.bg(cx.theme().colors().ghost_element_active))
|
||||||
|
.when(self.outlined, |this| this.rounded_md())
|
||||||
.when(self.selected, |this| {
|
.when(self.selected, |this| {
|
||||||
this.bg(cx.theme().colors().ghost_element_selected)
|
this.bg(cx.theme().colors().ghost_element_selected)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue