Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo selected state bookend #4064

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
42 changes: 42 additions & 0 deletions aries-site/src/themes/aries.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,52 @@ export const aries = deepMerge(hpe, {
// To be stripped out once theme changes are made in grommet-theme-hpe.
// keeping file for use as playground for future theme adjusments that need
// to be quickly tested
global: {
colors: {
'background-selected-weak': {
light: '#CBFAEB',
dark: '#093A2F',
},
'background-selected-weak-hover': {
light: '#AEF6DF',
dark: '#074B3B',
},
},
},
buttonGroup: {
// any Box props
gap: 'small',
},
button: {
selected: {
option: {
background: 'background-selected-weak',
color: 'text-strong',
font: {
weight: 500,
},
},
},
extend: ({ kind, theme, selected }) => {
let style = '';
if (kind === 'option' && selected) {
style += `box-shadow: inset 3px 0 ${
theme.global.colors['green!']
}; &:hover, &:focus:not(:focus-visible) {
background: ${
theme.global.colors['background-selected-weak-hover'][
theme.dark ? 'dark' : 'light'
]
};
box-shadow: inset 3px 0 ${theme.global.colors['green!']};
color: ${
theme.global.colors['text-strong'][theme.dark ? 'dark' : 'light']
};
}`;
}
return style;
},
},
feedback: {
closeButton: {
a11yTitle: `You are in a dialog containing a form to submit feedback.
Expand Down
Loading
Loading