mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-07 02:16:01 +02:00
Icons in buttons are encapsulated in span to avoid text-decoration (#2065)
The is-text css-class adds an underline to text in buttons. To avoid icons from receiving this underline they will be encapsulated in a span.
This commit is contained in:
2
gradle/changelog/remove_underline_from_icon_button.yaml
Normal file
2
gradle/changelog/remove_underline_from_icon_button.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: remove underline under icon in buttons with class is-text ([#2065](https://github.com/scm-manager/scm-manager/pull/2065))
|
||||
File diff suppressed because it is too large
Load Diff
@@ -89,14 +89,14 @@ const Button: FC<InnerProps> = ({
|
||||
);
|
||||
|
||||
const content = (
|
||||
<>
|
||||
<span>
|
||||
{renderIcon()}{" "}
|
||||
{(label || children) && (
|
||||
<>
|
||||
{label} {children}
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
</span>
|
||||
);
|
||||
|
||||
if (link && !disabled) {
|
||||
|
||||
Reference in New Issue
Block a user