Skip to content

Commit

Permalink
scoped attribute removed from components adding "global" styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Sqrcz committed Apr 25, 2024
1 parent afcec0c commit 2dbaede
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
25 changes: 10 additions & 15 deletions src/components/FwbButtonGroup/FwbButtonGroup.vue
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>
2 changes: 1 addition & 1 deletion src/components/FwbTooltip/FwbTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const theme = computed(() => {
})
</script>

<style scoped>
<style>
.v-popper--theme-tooltip-dark .v-popper__wrapper .v-popper__inner {
background: rgba(0, 0, 0);
color: #fff;
Expand Down

0 comments on commit 2dbaede

Please sign in to comment.