Skip to content

Commit

Permalink
fix(chip): add margin for badge when used in text element (patternfly…
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoker authored and mattnolting committed Dec 12, 2023
1 parent e84cee4 commit 8b9bf35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/patternfly/components/Chip/chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
// chip text
--#{$chip}__text--Color: var(--#{$pf-global}--Color--100);
--#{$chip}__text--MaxWidth: 16ch;
--#{$chip}__c-badge--MarginLeft: var(--#{$pf-global}--spacer--xs);

// chip actions
--#{$chip}__actions--FontSize: var(--#{$pf-global}--FontSize--xs);
Expand Down Expand Up @@ -92,6 +93,10 @@
position: relative;
max-width: var(--#{$chip}__text--MaxWidth);
color: var(--#{$chip}__text--Color);

.#{$badge} {
margin-left: var(--#{$chip}__c-badge--MarginLeft); // remove in breaking change
}
}

.#{$chip}__icon + .#{$chip}__text,
Expand Down

0 comments on commit 8b9bf35

Please sign in to comment.