shadcn theme toggle
Answered
Dutch posted this in #help-forum
DutchOP
Upon button click, a border appears around the button which is of opposite color to the selected theme, but then goes away after I click on the page itself.
Everything as per the shadcn guide has been done (in terms of implementation)
Does anyone know why? Am I missing something?
ps: 1st time using shadcn
Everything as per the shadcn guide has been done (in terms of implementation)
Does anyone know why? Am I missing something?
ps: 1st time using shadcn
Answered by @ts-ignore
you own all the code of the component, just change the tailwind styles
3 Replies
@Dutch Upon button click, a border appears around the button which is of opposite color to the selected theme, but then goes away after I click on the page itself.
Everything as per the shadcn guide has been done (in terms of implementation)
Does anyone know why? Am I missing something?
ps: 1st time using shadcn
that border is to indicate the currently focused element
DutchOP
Yep, that much I could gather. This doesn't happen by default on the shadcn site tho
@Dutch Yep, that much I could gather. This doesn't happen by default on the shadcn site tho
you own all the code of the component, just change the tailwind styles
Answer