Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3faa00f
small change for menu border color
bcalvery Jul 23, 2019
53af789
Merge branch 'master' of https://github.com/stardust-ui/react into fi…
bcalvery Jul 26, 2019
b7c1236
updating vertical menu spacing
bcalvery Jul 26, 2019
5bc6e59
Merge branch 'master' of https://github.com/stardust-ui/react into fi…
bcalvery Jul 26, 2019
45c6195
update changelog
bcalvery Jul 26, 2019
38e563d
Merge branch 'master' of https://github.com/stardust-ui/react into fi…
bcalvery Jul 29, 2019
4dcb98b
merge from master and fix changelog
bcalvery Jul 29, 2019
23b59d9
removing comment
bcalvery Jul 29, 2019
fad699b
fix changelog
bcalvery Jul 29, 2019
98ea80d
fixing vertical list item with icon alignment
bcalvery Jul 30, 2019
ebf7edf
merge from master
bcalvery Jul 30, 2019
b86d4d6
Merge branch 'master' into fix/menu-style-bugs
bcalvery Jul 30, 2019
0dfb9b6
Merge branch 'master' of https://github.com/stardust-ui/react into fi…
bcalvery Jul 30, 2019
a67abde
updating the changelog
Aug 9, 2019
2b18ca4
Merge branch 'master' into fix/menu-style-bugs
alinais Aug 12, 2019
5392e37
Merge branch 'master' into fix/menu-style-bugs
alinais Aug 12, 2019
ca1ebd4
merge from master
bcalvery Aug 12, 2019
237b5c6
Merge branch 'fix/menu-style-bugs' of https://github.com/stardust-ui/…
bcalvery Aug 12, 2019
8a8fa15
Merge branch 'master' of https://github.com/stardust-ui/react into fi…
bcalvery Aug 12, 2019
894b014
Fix prettier issues
Aug 12, 2019
8d98c52
updating changlog
Aug 12, 2019
db4b8c3
oops, redoing changelog because merged wrong i guess
Aug 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

### Fixes
- Update text `Button` styles for Teams Theme to match [redlines] @codepretty ([#1719](https://github.com/stardust-ui/react/pull/1719))
- Fix `Menu` and `MenuItem` styles to match [redlines] @bcalvery ([#1712](https://github.com/stardust-ui/react/pull/1712))

### Features
- Add `overwrite` prop to `Provider` @layershifter ([#1780](https://github.com/stardust-ui/react/pull/1780))
Expand Down
5 changes: 4 additions & 1 deletion packages/react/src/components/Menu/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,10 @@ class MenuItem extends AutoControlledComponent<WithAsProp<MenuItemProps>, MenuIt
>
{icon &&
Icon.create(this.props.icon, {
defaultProps: { xSpacing: !!content ? 'after' : 'none' },
defaultProps: {
xSpacing: !!content ? 'after' : 'none',
styles: styles.icon,
},
})}
{rtlTextContainer.createFor({ element: content })}
{menu &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,14 @@ const menuItemStyles: ComponentSlotStylesInput<MenuItemPropsAndState, MenuVariab
}
},

icon: ({ props: p }): ICSSInJSStyle => ({
...(!p.iconOnly && {
// reduce margins so text has the dominant influence on the vertical height
marginTop: pxToRem(-10),
marginBottom: pxToRem(-8),
}),
}),

menu: () => ({ zIndex: '1000' }),

indicator: () => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default (siteVars: any): MenuVariables => {
colorScheme: pickValuesFromColorScheme(
extendColorScheme(siteVars.colorScheme, {
default: {
borderActive: siteVars.colors.grey[600],
borderActive: siteVars.colorScheme.default.border2,
backgroundActive: siteVars.colorScheme.default.backgroundActive1,
backgroundFocus: siteVars.colorScheme.default.backgroundFocus1,
foregroundDisabled: siteVars.colorScheme.default.foregroundDisabled1,
Expand Down Expand Up @@ -104,10 +104,10 @@ export default (siteVars: any): MenuVariables => {
underlinedBorderColor: siteVars.colors.grey[200],

lineHeightBase: siteVars.lineHeightMedium,
horizontalPadding: `${pxToRem(14)} ${pxToRem(18)} ${pxToRem(14)} ${pxToRem(18)}`,
horizontalPadding: `${pxToRem(14)} ${pxToRem(18)}`,

verticalBackgroundColor: siteVars.colors.white,
verticalItemPadding: `${pxToRem(9)} ${pxToRem(16)} ${pxToRem(9)} ${pxToRem(16)}`,
verticalItemPadding: `${pxToRem(7)} ${pxToRem(16)}`,
verticalBoxShadow: siteVars.shadowLevel3,
verticalDividerMargin: `${pxToRem(8)} 0`,
verticalItemBorderWidth: pxToRem(2),
Expand All @@ -118,7 +118,7 @@ export default (siteVars: any): MenuVariables => {
pointingIndicatorBackgroundColor: siteVars.colors.brand[600],

underlinedBottomBorderWidth: pxToRem(2),
primaryBorderColor: siteVars.colors.grey[100],
primaryBorderColor: siteVars.colorScheme.default.border2,

dividerHeight: pxToRem(1),
borderWidth: pxToRem(1),
Expand Down