Fix a11y issues with Badge component (#2721)
* fix: a11y issues in badge component * fix: spacing issues with button element
This commit is contained in:
parent
d261d1e467
commit
73eab9280d
@ -24,7 +24,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
});
|
||||
</script>
|
||||
|
||||
<span
|
||||
<button
|
||||
bind:this={spanRef}
|
||||
title={tooltip}
|
||||
class="badge {className}"
|
||||
@ -35,11 +35,21 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
<IconConstrain {iconSize} {widthMultiplier} {flipX}>
|
||||
<slot />
|
||||
</IconConstrain>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<style>
|
||||
.badge {
|
||||
color: var(--badge-color, inherit);
|
||||
border: none;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.badge:hover,
|
||||
.badge:active {
|
||||
border: none;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.dropdown-toggle::after {
|
||||
|
Loading…
Reference in New Issue
Block a user