You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<buttonclass="slidev-icon-btn" title="Switch to light mode theme"><spanclass="sr-only">Switch to light mode theme</span><carbon-moon></carbon-moon></button>
Apparently the <carbon-moon> icon is treated as a builtin in element and is not correctly resolved. Perhaps some internal resolvers are overridden?
import{defineAppSetup}from"@slidev/types";importPrimeVuefrom"primevue/config";importAurafrom"@primevue/themes/aura";exportdefaultdefineAppSetup(({ app })=>{// TODO: support specifying themes in head matterapp.use(PrimeVue,{theme: {preset: Aura,options: {// PrimeVue uses system dark mode selector by default, which conflicts// with the toggle in SlidevdarkModeSelector: ".dark"}},});});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all! I'm building an addon that brings PrimeVue components to Slidev: https://github.com/sghuang19/slidev-addon-prime.
The components can be used successfully. However, the icon in the toggle mode toggle is not displaying.
With the PrimeVue resolver turned off:
With the resolver turned on:
Apparently the
<carbon-moon>
icon is treated as a builtin in element and is not correctly resolved. Perhaps some internal resolvers are overridden?Here's how it's done:
Resolver config:
App config:
Beta Was this translation helpful? Give feedback.
All reactions