Skip to content

Commit

Permalink
#2973 - fixes spacing on right icon inside labeled icon button
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Sep 13, 2015
1 parent 92e0ee2 commit ad4a057
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
- **Build** - Fixed issue where using a packaged theme without a `site.variables` would cause build to fail

**Bugfixes**
- **Button** -
- **Table** - Fixed issue where `(x) column segment table` was inheriting accidentally inheriting some grid styles

- **Grid** - Fixed `middle aligned grid` not applying to columns #2959
- **Menu** - Fixed issue where `right menu` was not floating correctly inside a `menu > container` on mobile #2969
- **Button** - Fixes `right labeled icon button` with a `right` named icon (for example `right arrow`) having incorrect margin on icon. #2973

### Version 2.1.3 - Sep 03, 2015

Expand Down
3 changes: 2 additions & 1 deletion src/definitions/elements/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -834,10 +834,11 @@
border-radius: 0px;
border-top-left-radius: inherit;
border-bottom-left-radius: inherit;
text-align: center;

margin: @labeledIconMargin;
width: @labeledIconWidth;
background-color: @labeledIconBackgroundColor;
text-align: center;
color: @labeledIconColor;
box-shadow: @labeledIconLeftShadow;
}
Expand Down
1 change: 1 addition & 0 deletions src/themes/default/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
@labeledLabelBorderColor: @borderColor;
@labeledLabelBorderOffset: -@borderBoxShadowWidth;
@labeledTagLabelSize: 1.85em; /* hypotenuse of triangle */
@labeledIconMargin: 0em;

/* Labeled Icon */
@labeledIconWidth: 1em + (@verticalPadding * 2);
Expand Down

0 comments on commit ad4a057

Please sign in to comment.