Skip to content

Commit fc7a5aa

Browse files
committed
fix: remove black border from menu items with !important
- Add explicit focus styles to prevent browser default focus outlines - Use !important to override any Ant Design default styles
1 parent 70a7985 commit fc7a5aa

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

src/index.css

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,22 +124,32 @@ body,
124124
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
125125
background: transparent;
126126
position: relative;
127-
border: none;
128-
outline: none;
127+
border: none !important;
128+
outline: none !important;
129129
box-shadow: none;
130130
}
131131

132+
.ant-menu-item:focus {
133+
border: none !important;
134+
outline: none !important;
135+
}
136+
132137
.ant-menu-dark .ant-menu-item-selected {
133138
background: linear-gradient(135deg, rgb(73, 107, 187), rgb(100, 173, 230));
134139
backdrop-filter: blur(8px);
135140
-webkit-backdrop-filter: blur(8px);
136141
color: #fff;
137142
font-weight: 600;
138-
border: none;
139-
outline: none;
143+
border: none !important;
144+
outline: none !important;
140145
box-shadow: none;
141146
}
142147

148+
.ant-menu-dark .ant-menu-item-selected:focus {
149+
border: none !important;
150+
outline: none !important;
151+
}
152+
143153
.ant-menu-item:hover:not(.ant-menu-item-selected) {
144154
background-color: rgba(255, 255, 255, 0.05);
145155
transform: translateX(4px);

0 commit comments

Comments
 (0)