Skip to content

Commit

Permalink
feat(button): support letter spacing (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Aug 23, 2023
1 parent 4946b6c commit 385a5f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Button/src/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const TEXT_STYLES = new Set([
'fontStyle',
'textTransform',
'textDecoration',
'letterSpacing',
]);
function isValidCss(style, value) {
Expand Down Expand Up @@ -456,6 +457,7 @@ export default {
font-size: var(--font-size);
font-family: var(--font-family);
font-style: var(--font-style);
letter-spacing: var(--letter-spacing);
text-transform: var(--text-transform);
text-decoration: var(--text-decoration);
vertical-align: middle;
Expand Down Expand Up @@ -671,6 +673,7 @@ export default {
.MainText {
gap: 8px;
width: max-content;
padding-left: var(--letter-spacing);
}
.iconButton .MainText {
Expand All @@ -679,6 +682,7 @@ export default {
.InformationText {
width: min-content;
padding-left: var(--letter-spacing);
opacity: 0.6;
}
Expand Down

0 comments on commit 385a5f4

Please sign in to comment.