design improvements for rule creation tabs#3308
Conversation
owenpearson
commented
Apr 2, 2026
- use radix tabs for better accessibility and keyboard navigation
- update styles based on design feedback
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
00cecd7 to
80a5e18
Compare
m-hulbert
left a comment
There was a problem hiding this comment.
Thanks Owen - this is much tidier. Just 2 small comments.
| <RadixTabs.Trigger | ||
| key={value} | ||
| value={value} | ||
| style={{ outline: 'none', borderTopLeftRadius: '6px', borderTopRightRadius: '6px' }} |
There was a problem hiding this comment.
I think this outline: 'none' means that you don't get a focus state when keyboard tabbing.
There was a problem hiding this comment.
Thanks for the review, yeah this was feedback from design: the focus ring looks bad here so we decided to hide it. You can still navigate between the tabs using arrows keys and the focused tab is clearly visible so I don't think this is a real problem for accessibility.
| ) : null; | ||
| export const Tab: React.FC<TabProps> = ({ children }) => { | ||
| // Tab is only used declaratively — Tabs reads its props and renders RadixTabs.Content. | ||
| // When used outside of Tabs, render nothing. |
There was a problem hiding this comment.
I don't think this will render nothing now, and we should probably keep that behaviour when using them independently. WDYT?
There was a problem hiding this comment.
Yeah you're right, updated!
80a5e18 to
17b47f8
Compare
- use radix tabs for better accessibility and keyboard navigation - update styles based on design feedback
17b47f8 to
03c6f20
Compare