getElement().getThemeList().add("narrow-drawer"); is not working vaaadin 24 please help me

getElement().getThemeList().add(“narrow-drawer”); is not working vaaadin 24 please help me

Please describe what you’re trying to achieve, and share some code. Was the thing you were trying to do working before?

thanks for your response i got solution .

Can you share your solution in case someone else faces the same issue?

insted of getElement().getThemeList().add(“narrow-drawer”); i used getElement().getClassList().add(“narrow-drawer”); and set width to addToDrawer

Which component/element did not have addClassName(s)? :thinking: