Skip to content

Commit

Permalink
feat: tooltip color variants now can be extended using apply
Browse files Browse the repository at this point in the history
fix: #2371
  • Loading branch information
saadeghi committed Sep 26, 2023
1 parent 9beabed commit 11fb1b1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/components/styled/tooltip.css

This file was deleted.

30 changes: 30 additions & 0 deletions src/utilities/styled/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,33 @@
bottom: auto;
}
}
.tooltip {
&-primary {
--tooltip-color: hsl(var(--p));
--tooltip-text-color: hsl(var(--pc));
}
&-secondary {
--tooltip-color: hsl(var(--s));
--tooltip-text-color: hsl(var(--sc));
}
&-accent {
--tooltip-color: hsl(var(--a));
--tooltip-text-color: hsl(var(--ac));
}
&-info {
--tooltip-color: hsl(var(--in));
--tooltip-text-color: hsl(var(--inc));
}
&-success {
--tooltip-color: hsl(var(--su));
--tooltip-text-color: hsl(var(--suc));
}
&-warning {
--tooltip-color: hsl(var(--wa));
--tooltip-text-color: hsl(var(--wac));
}
&-error {
--tooltip-color: hsl(var(--er));
--tooltip-text-color: hsl(var(--erc));
}
}

0 comments on commit 11fb1b1

Please sign in to comment.