Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(chips): Fix readonly padding issue.
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
topherfangio committed Dec 2, 2015
1 parent fd33d41 commit 5d34eff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/chips/chips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand All @@ -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%;
Expand Down

0 comments on commit 5d34eff

Please sign in to comment.