Commit e9b4946d authored by Mickaël Bourgier's avatar Mickaël Bourgier
Browse files

🐛 [CssBaseline/colors] Fix all colors were undefined

parent d1c029a7
Pipeline #1512 passed with stage
in 51 seconds
......@@ -8,6 +8,7 @@
### Bug fixes
- **[ListItem]** Prevent default event on click if component is "a"
- **[CssBaseline/colors]** Fix all colors were undefined
- **[CssBaseline/reboot]** Use primary color for links
### New features
......
export default ({ colors }) => {
const variants = [
'default',
'disabled',
'primary',
'success',
'info',
'warning',
'danger',
'light',
'dark'
];
const variants = [
'default',
'disabled',
'primary',
'success',
'info',
'warning',
'danger',
'light',
'dark'
];
return {
'@global': {
...Object.assign(
...variants.map(variant => ({
[`.text-${variant}`]: {
color: `${colors[variant]} !important`
}
}))
),
...Object.assign(
...variants.map(variant => ({
[`.bg-${variant}`]: {
backgroundColor: `${colors[variant]} !important`
}
}))
)
}
};
};
export default ({ colors }) => ({
'@global': {
...Object.assign(
...variants.map(variant => ({
[`.text-${variant}`]: {
color: `${colors.palette[variant]} !important`
}
}))
),
...Object.assign(
...variants.map(variant => ({
[`.bg-${variant}`]: {
backgroundColor: `${colors.palette[variant]} !important`
}
}))
)
}
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment