-
-
Save domenic/fa84dddf918014b2fd9c853ba9b4aa86 to your computer and use it in GitHub Desktop.
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
<!-- inside shadow root --> | |
<style> | |
.up-stepper { | |
@apply --up-stepper; | |
} | |
</style> | |
<div class="up-stepper"></div> | |
<!-- outside --> | |
<style> | |
my-fancy-slider { | |
--up-stepper: { | |
color: blue; | |
margin: 5px; | |
} | |
} | |
</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
<!-- inside shadow root --> | |
<script> | |
findUpStepper().exposeAsPseudoPart("up-stepper"); | |
</script> | |
<div class="up-stepper"></div> | |
<!-- outside --> | |
<style> | |
my-fancy-slider::part(up-stepper) { | |
color: blue; | |
margin: 5px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment