File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 374374 .nt-relative .nt-flex .nt-shrink-0 .nt-flex-col .nt-justify-center .nt-items-center .nt-gap-1 .nt-mt-auto .nt-py-3 .nt-text-foreground-alpha-400 {
375375 display : none !important ;
376376 }
377+
378+ /*
379+ * Hide role column in Clerk organization members table when RBAC is disabled
380+ * Unfortunately Clerk doesn't provide a better appearance selector.
381+ */
382+ .hide-role-column .cl-tableHeaderCell [data-localization-key *= "role" ],
383+ .hide-role-column .cl-tableBodyCell : nth-child (3 ) {
384+ display : none !important ;
385+ }
386+
387+ /* Show role column in Clerk organization members table when RBAC is enabled */
388+ .show-role-column .cl-tableHeaderCell [data-localization-key *= "role" ],
389+ .show-role-column .cl-tableBodyCell : nth-child (3 ) {
390+ display : table-cell !important ;
391+ }
377392}
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ export function SettingsPage() {
173173 < TabsContent value = "team" className = "rounded-lg" >
174174 < motion . div { ...FADE_ANIMATION } >
175175 < Card className = "border-none shadow-none" >
176- < div className = " pb-6 pt-4" >
176+ < div className = { ` pb-6 pt-4 ${ isRbacEnabled ? 'show-role-column' : 'hide-role-column' } ` } >
177177 { isRbacEnabledFlag && ! isRbacEnabled && (
178178 < InlineToast
179179 title = "Tip:"
You can’t perform that action at this time.
0 commit comments