From 5d34eff333f082973e0203a7093b904f84060e97 Mon Sep 17 00:00:00 2001 From: Topher Fangio Date: Tue, 1 Dec 2015 16:34:25 -0600 Subject: [PATCH] fix(chips): Fix readonly padding issue. In readonly mode, the dynamic chips had an additional bit of padding that made them inconsistent with static chips and caused the inner text to not be centered. Fixes #2829 (already closed, but people mentioned it in comments) --- src/components/chips/chips.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/chips/chips.scss b/src/components/chips/chips.scss index 98de64d7ce4..73fd29ed962 100644 --- a/src/components/chips/chips.scss +++ b/src/components/chips/chips.scss @@ -65,6 +65,10 @@ $contact-chip-name-width: rem(12) !default; .md-chip:not(.md-readonly) { padding-right: $chip-remove-padding-right; + + .md-chip-content { + padding-right:rem(0.4); + } } } @@ -83,7 +87,6 @@ $contact-chip-name-width: rem(12) !default; .md-chip-content { display: block; - padding-right:rem(0.4); float: left; white-space: nowrap; max-width: 100%;