Being able to control styles with parts is awesome, but there are various parts that don’t seem to be exported. This is beginning to feel like there are just too many important styles that I can’t access to actually use this. Here is an example:
I am trying to target the Timezone button, and have tried to throw styles at it to try to get it to work, but nothing seems to be sticking
nylas-scheduler-editor::part(nap__timezone-button) {
--nylas-base-800: #cbd5e1 !important;
--nylas-base-900: #cbd5e1 !important;
--nylas-base-600: #cbd5e1 !important;
--nylas-base-700: #cbd5e1 !important;
--nylas-base-300: #374151 !important;
color: #cbd5e1 !important;
background-color: #1e293b !important; /* Dark background for option */
font-size: 14px !important;
padding: 4px 8px !important;
border-radius: 4px !important;
}
nylas-scheduler-editor::part(sd_dropdown-button-selected-label) {
--nylas-base-800: #cbd5e1 !important;
--nylas-base-900: #cbd5e1 !important;
--nylas-base-600: #cbd5e1 !important;
--nylas-base-700: #cbd5e1 !important;
--nylas-base-300: #374151 !important;
color: #cbd5e1 !important;
background-color: #1e293b !important; /* Dark background for option */
font-size: 14px !important;
padding: 4px 8px !important;
border-radius: 4px !important;
}
Most things are able to be targeted, I can’t figure out a pattern as to why some stuff works and others don’t. That said, this is the first I have used this parts syntax and I am admittedly not a CSS ninja.
Any guidance is appreciated.