Skip to content

Commit

Permalink
Update SpecificityDoc.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Oct 2, 2024
1 parent bd34b90 commit e7b99ef
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions apps/showcase/doc/theming/styled/csslayer/SpecificityDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Another advantage of this approach is that it does not force you to figure out the built-in class names of the components.
</p>
<div class="card flex justify-center">
<ToggleSwitch v-model="checked" :pt="{ slider: 'my-switch-slider' }" />
<ToggleSwitch v-model="checked" :pt="{ slider: 'my-switch-slider', handle: 'my-switch-handle', icon: 'my-switch-icon' }" />
</div>
<DocSectionCode :code="code" hideToggleCode hideStackBlitz />
<p>Layers also make it easier to use CSS Modules, view the CSS Modules guide for examples.</p>
Expand All @@ -27,7 +27,7 @@ export default {
code: {
basic: `
<template>
<ToggleSwitch v-model="checked" :pt="{ slider: 'my-switch-slider' }" />
<ToggleSwitch v-model="checked" :pt="{ slider: 'my-switch-slider', handle: 'my-switch-handle', icon: 'my-switch-icon' }" />
</template>
<script>
Expand All @@ -41,9 +41,13 @@ const checked = ref(false);
border-radius: 0;
}
.my-switch-slider:before {
.my-switch-handle {
border-radius: 0;
}
.my-switch-icon {
display: none !important;
}
</style>
`
}
Expand All @@ -57,7 +61,11 @@ const checked = ref(false);
border-radius: 0;
}
.my-switch-slider:before {
.my-switch-handle {
border-radius: 0;
}
.my-switch-icon {
display: none !important;
}
</style>

0 comments on commit e7b99ef

Please sign in to comment.