This repository was archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
fix: (menu & menuitem): vertical menu theming updates #934
Merged
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
82d12b6
Spacing updates for vertical menu module
03dec4e
Moving styles into appropriate file
b0d046f
Focus styles & theming experiments
edef38a
Themeing
a6af9f4
Menu, menuitem high contrast theme colors
f85aad2
More theming
1942b06
Theming
bf3643d
Vertical menu theming - colors
1741409
Cleanup + dark theme focus
bc9b4fa
Removing duplicate menu variables
42a053e
Reverting unintended changes to Status component styling
a845ae8
No non-unique react elements
2e3468d
Prettier fix
7a6b6c0
Reverting unintended change to package.json
jaanus03 d4b524d
Streamlining menu variable names
jaanus03 52d5b19
Reverting yarn.lock to latest
jaanus03 9708414
Renaming HC theme variables
jaanus03 a10e314
PR feedback
jaanus03 b77b1a3
Pointing vertical menu focus state
jaanus03 53a2dae
Removing duplicate variables
jaanus03 5fa203c
Removing boxShadow from non submenu vertical menus
jaanus03 5c54e41
Focus background color update
jaanus03 cac5132
HC theme colors update
jaanus03 00c9388
Vertical menu divider & border updates
jaanus03 e846854
Dark & HC theme divider & vertical menu border styles
jaanus03 d6003df
Primary menu item focus update
jaanus03 38f13ba
Vertical & pointing menu cleanup
2cdfb6e
Double border for accessibility
99f1890
Removing vertical menu 2px border from HC & Dark theme
a2ca164
Changelog entry
db15f4a
PR Feedback
426f05c
Changelog entry change
8671cb1
PR feedback
79aa92f
PR Feedback - outline property fix
937e3b5
Removing duplicate menubutton
12d14e2
Changelog entry change
79b207f
HC style variable update
f5c5396
PR Feedback
e277cfa
Conflict resolution
e6ed80b
Fixing spacing issue of divider in vertical menu
36012de
Fixing the sidebar recent background color change
20d5d9a
Reverting accidental import
37ca2d0
Updating Sidebar color
26515d5
Changelog entry
f044faa
Added back newline at the end of yarn.lock
0ec5c5d
PR feedback
2a3e28e
Yarn.lock revert
f87d3c0
isInSubmenu --> inSubmenu variable rename
3a4c45b
Merge branch 'master' into jaanusp/vertical-menu-updates-453393
jaanus03 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 16 additions & 9 deletions
25
packages/react/src/themes/teams-dark/components/Menu/menuVariables.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,16 @@ | ||
| export interface MenuVariables { | ||
| color: string | ||
| } | ||
|
|
||
| export default (siteVars: any): MenuVariables => { | ||
| return { | ||
| color: siteVars.colors.white, | ||
jaanus03 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
| import { pxToRem } from '../../../../lib' | ||
| import { MenuVariables } from '../../../teams/components/Menu/menuVariables' | ||
|
|
||
| export default (siteVars: any): Partial<MenuVariables> => ({ | ||
| verticalBorderColor: siteVars.black, | ||
|
|
||
| focusedBorder: `solid ${pxToRem(1)} ${siteVars.colors.white}`, | ||
| focusedBackgroundColor: 'transparent', | ||
|
|
||
| hoverBackgroundColor: siteVars.gray08, | ||
|
|
||
| activeColor: siteVars.colors.white, | ||
| activeBackgroundColor: siteVars.gray08, | ||
|
|
||
| verticalBackgroundColor: siteVars.gray10, | ||
| }) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 33 additions & 10 deletions
43
packages/react/src/themes/teams-high-contrast/components/Menu/menuItemStyles.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 9 additions & 12 deletions
21
packages/react/src/themes/teams-high-contrast/components/Menu/menuVariables.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,10 @@ | ||
| export interface MenuVariables { | ||
| color: string | ||
| activeColor: string | ||
| activeBackgroundColor: string | ||
| } | ||
| import { MenuVariables } from '../../../teams/components/Menu/menuVariables' | ||
|
|
||
| export default (siteVars: any): MenuVariables => { | ||
| return { | ||
| color: siteVars.white, | ||
| activeColor: siteVars.black, | ||
| activeBackgroundColor: siteVars.accessibleYellow, | ||
| } | ||
| } | ||
| export default (siteVars: any): Partial<MenuVariables> => ({ | ||
| color: siteVars.white, | ||
| activeColor: siteVars.black, | ||
| focusedBackgroundColor: siteVars.accessibleYellow, | ||
| activeBackgroundColor: siteVars.accessibleCyan, | ||
|
|
||
| verticalBackgroundColor: siteVars.colors.black, | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.