From 7246188b2539f51f0feb9b5a4a2a947d4a4cc560 Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Wed, 15 Jan 2020 14:33:32 -0800 Subject: [PATCH] fix(tag): ensure tag keeps pill shape with single character (#5053) --- packages/components/src/components/tag/_tag.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/components/src/components/tag/_tag.scss b/packages/components/src/components/tag/_tag.scss index f777029d53c6..fdbff9ad0574 100644 --- a/packages/components/src/components/tag/_tag.scss +++ b/packages/components/src/components/tag/_tag.scss @@ -21,9 +21,11 @@ display: inline-flex; align-items: center; + justify-content: center; padding: 0 $carbon--spacing-03; height: 1.5rem; max-width: 100%; // restricts size of contained elements + min-width: rem(32px); // ensures tag stays pill shaped; margin: $carbon--spacing-02; border-radius: rem(15px);