File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
src/Shared/Components/Button Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ const ButtonElement = ({
37
37
< Link
38
38
{ ...linkProps }
39
39
{ ...props }
40
- className = { `${ props . className } ${ props . disabled ? 'dc__disable-click' : '' } ` }
40
+ // Added the specific class to ensure that the link override is applied
41
+ className = { `${ props . className } button__link ${ props . disabled ? 'dc__disable-click' : '' } ` }
41
42
onClick = { onClick as LinkProps [ 'onClick' ] }
42
43
/>
43
44
)
Original file line number Diff line number Diff line change 3
3
color : $text-color ;
4
4
border : 1px solid $border-color ;
5
5
6
+ & .button__link {
7
+ color : $text-color ;
8
+ }
9
+
6
10
// Only stroke icons are supposed to be used with button
7
11
svg ,
8
12
svg * {
170
174
border : none ;
171
175
172
176
& :hover {
173
- text-decoration : underline ;
177
+ text-decoration : underline !important ;
174
178
}
175
179
}
176
180
}
184
188
visibility : hidden ;
185
189
}
186
190
}
191
+
192
+ & __link {
193
+ & :hover {
194
+ text-decoration : none ;
195
+ }
196
+ }
187
197
}
You can’t perform that action at this time.
0 commit comments