mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(sidebar): add dark theme colors [EE-3666] (#7414)
This commit is contained in:
parent
fb3a31a4fd
commit
c3ce4d8b53
83 changed files with 1738 additions and 1200 deletions
|
@ -53,7 +53,12 @@ export function Icon({ icon, feather, className, mode, size }: Props) {
|
|||
|
||||
if (icon.indexOf('svg-') === 0) {
|
||||
const svgIcon = icon.replace('svg-', '');
|
||||
return <Svg icon={svgIcon as keyof typeof SvgIcons} className={classes} />;
|
||||
return (
|
||||
<Svg
|
||||
icon={svgIcon as keyof typeof SvgIcons}
|
||||
className={clsx(classes, '!flex')}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
if (feather) {
|
||||
|
@ -66,6 +71,10 @@ export function Icon({ icon, feather, className, mode, size }: Props) {
|
|||
}
|
||||
|
||||
return (
|
||||
<i className={clsx('fa', icon, classes)} aria-hidden="true" role="img" />
|
||||
<i
|
||||
className={clsx(icon.startsWith('fa-') ? `fa ${icon}` : icon, classes)}
|
||||
aria-hidden="true"
|
||||
role="img"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue