UI: init tailwind popover-open variant
This commit is contained in:
@@ -74,7 +74,12 @@ const mkBorderUtils = (
|
|||||||
|
|
||||||
export default plugin.withOptions(
|
export default plugin.withOptions(
|
||||||
(_options = {}) =>
|
(_options = {}) =>
|
||||||
({ addUtilities, theme }) => {
|
({ addUtilities, theme, addVariant, e }) => {
|
||||||
|
addVariant("popover-open", ({ modifySelectors, separator }) => {
|
||||||
|
modifySelectors(({ className }) => {
|
||||||
|
return `.${e(`popover-open${separator}${className}`)}:popover-open`;
|
||||||
|
});
|
||||||
|
});
|
||||||
addUtilities({
|
addUtilities({
|
||||||
// Background colors
|
// Background colors
|
||||||
".bg-def-1": {
|
".bg-def-1": {
|
||||||
|
|||||||
Reference in New Issue
Block a user