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:
Phil-Ah
2022-06-09 07:49:49 +02:00
committed by GitHub
parent 5267a0556a
commit 6b276afb3b
3 changed files with 744 additions and 514 deletions

View 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

View File

@@ -89,14 +89,14 @@ const Button: FC<InnerProps> = ({
);
const content = (
<>
<span>
{renderIcon()}{" "}
{(label || children) && (
<>
{label} {children}
</>
)}
</>
</span>
);
if (link && !disabled) {