Skip to content

Commit

Permalink
Merge branch 'master' into remove-layer
Browse files Browse the repository at this point in the history
  • Loading branch information
asudoh authored Jan 22, 2020
2 parents c9e766d + a04a3d5 commit 0df272c
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 3 deletions.
12 changes: 12 additions & 0 deletions packages/components/src/components/dropdown/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,18 @@
}
}

.#{$prefix}--dropdown--sm .#{$prefix}--dropdown-link {
padding-top: rem(7px);
padding-bottom: rem(7px);
height: rem(32px);
}

.#{$prefix}--dropdown--xl .#{$prefix}--dropdown-link {
padding-top: rem(15px);
padding-bottom: rem(15px);
height: rem(48px);
}

.#{$prefix}--dropdown--focused,
.#{$prefix}--dropdown-link:focus {
@include focus-outline('outline');
Expand Down
20 changes: 20 additions & 0 deletions packages/components/src/components/list-box/_list-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,14 @@ $list-box-menu-width: rem(300px);
}
}

.#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item {
height: rem(32px);
}

.#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item {
height: rem(48px);
}

.#{$prefix}--list-box--disabled .#{$prefix}--list-box__menu-item:hover {
background-color: transparent;
}
Expand Down Expand Up @@ -503,6 +511,18 @@ $list-box-menu-width: rem(300px);
}
}

.#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item__option {
padding-top: rem(7px);
padding-bottom: rem(7px);
height: rem(32px);
}

.#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item__option {
padding-top: rem(15px);
padding-bottom: rem(15px);
height: rem(48px);
}

.#{$prefix}--list-box--disabled
.#{$prefix}--list-box__menu-item:hover
.#{$prefix}--list-box__menu-item__option,
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/tag/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
min-width: rem(32px); // ensures tag stays pill shaped;
margin: $carbon--spacing-02;
border-radius: rem(15px);
cursor: default;

&:not(:first-child) {
margin-left: 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Button/Button-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { prefix } = settings;

const icons = {
None: 'None',
'Add with filled circle (Add16 from `@carbon/icons-react`)': 'Add16',
'Add (Add16 from `@carbon/icons-react`)': 'Add16',
'Search (Search16 from `@carbon/icons-react`)': 'Search16',
};

Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/Tag/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const Tag = ({
<Close16 />
</button>
) : (
<button className={tagClasses} {...other}>
<span className={tagClasses} {...other}>
{children !== null && children !== undefined ? children : TYPES[type]}
</button>
</span>
);
};

Expand Down

0 comments on commit 0df272c

Please sign in to comment.