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

chore(@kadena/react-ui): Removed "background" from sprinkles properties #1201

Merged
merged 2 commits into from
Nov 20, 2023
Merged
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
2 changes: 2 additions & 0 deletions .changeset/perfect-brooms-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { $$footerMenu, $$pageWidth } from '../../global.css';
export const footerWrapperClass = style([
sprinkles({
position: 'relative',
background: '$gray90',
backgroundColor: '$gray90',
marginTop: '$40',
}),
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const menuClass = style([
position: 'fixed',
height: '100%',
width: '100%',
background: '$background',
backgroundColor: '$background',
overflow: 'hidden',
top: '$17',
bottom: 0,
Expand All @@ -31,7 +31,7 @@ export const menuClass = style([
bottom: 'auto',
height: `calc(100vh - ${vars.sizes.$18})`,
transform: 'translateX(0)',
background: 'transparent',
backgroundColor: 'transparent',
paddingBottom: vars.sizes.$40,
},
}),
Expand Down Expand Up @@ -76,7 +76,7 @@ export const menuBackClass = style([
cursor: 'pointer',
}),
{
background: 'rgba(0,0,0,.5)',
backgroundColor: 'rgba(0,0,0,.5)',
border: 0,
opacity: 0,
transform: 'translateX(-100%)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ export const sideMenuTitleClass = style([
marginY: '$4',
textAlign: 'left',
fontSize: '$sm',
backgroundColor: 'transparent',
border: 'none',
}),
{
background: 'transparent',
border: '0',
},
]);

export const sideMenuTitleButtonClass = style([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const codeTitle = style([
display: 'none',
alignItems: 'center',
fontFamily: '$main',
background: '$blue70',
backgroundColor: '$blue70',
color: '$white',
fontWeight: '$bold',
textTransform: 'capitalize',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const accountFormStyle = style([
paddingTop: '$10',
paddingRight: '$10',
paddingLeft: '$10',
background: '$gray40',
backgroundColor: '$gray40',
}),
{
alignSelf: 'stretch',
Expand All @@ -55,7 +55,7 @@ export const formHeaderStyle = style([
paddingLeft: '$10',
alignItems: 'flex-start',
gap: '$2',
background: '$gray40',
backgroundColor: '$gray40',
}),
{
alignSelf: 'stretch',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const CardContainer = style([
borderRadius: '$sm',
alignItems: 'flex-start',
fontSize: '$sm',
background: {
backgroundColor: {
lightMode: '$white',
darkMode: '$gray100',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/libs/react-ui/src/styles/sprinkles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const systemProperties = defineProperties({
wordBreak: ['normal', 'keep-all', 'break-word', 'break-all'],
zIndex: [-1, 0, 1],
whiteSpace: ['nowrap', 'break-spaces', 'normal', 'pre-wrap'],
background: ['none'],
},
});

Expand All @@ -40,7 +41,6 @@ const colorProperties = defineProperties({
defaultCondition: 'lightMode',
properties: {
color: { ...vars.colors, inherit: 'inherit' },
background: { ...vars.colors, none: 'none' },
backgroundColor: { ...vars.colors, transparent: 'transparent' },
borderColor: vars.colors,
},
Expand Down
Loading