#Hiding Elements in the AdminBar

6 messages · Page 1 of 1 (latest)

bleak lily
#

I'm trying to hide the user email and logout buttons in the PayloadAdminBar component. I've supplied the classNames thus:

classNames={{
  controls: 'font-medium text-white',
  logo: 'text-white',
  user: 'hidden',
  logout: 'hidden',
  preview: 'text-white'
}}

Yet the user email and logout buttons are still shown? Any thoughts on where I'm going wrong?

dire hull
#

Have you got .hidden available in a global css file?

bleak lily
#

@dire hull - yes, I'm using Tailwind

#

But the class isn't applied to the element.

dire hull