-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scoped
attribute removed from components adding "global" styles
- Loading branch information
Showing
2 changed files
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
<template> | ||
<div | ||
class="btn-group inline-flex rounded-md shadow-sm" | ||
class="fwb-button-group inline-flex rounded-md shadow-sm" | ||
role="group" | ||
> | ||
<slot /> | ||
</div> | ||
</template> | ||
|
||
<!-- TODO: maybe use provide/inject to control styles --> | ||
<style scoped> | ||
@tailwind components; | ||
|
||
@layer components { | ||
.btn-group > button { | ||
@apply rounded-none; | ||
} | ||
.btn-group > button:first-child { | ||
@apply rounded-l-lg; | ||
} | ||
.btn-group > button:last-child { | ||
@apply rounded-r-lg; | ||
} | ||
<style> | ||
.fwb-button-group > button { | ||
@apply rounded-none; | ||
} | ||
.fwb-button-group > button:first-child { | ||
@apply rounded-l-lg; | ||
} | ||
.fwb-button-group > button:last-child { | ||
@apply rounded-r-lg; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters