Added support for left-aligned radio cards#2657
Conversation
Extended the radio "cards" variant's "indicator" prop to accept a position. "start"/"left" render the indicator on the left side of the card, while "end"/"right"/true keep the existing right-aligned default and false continues to hide it. The position can be set per card or on the group (inherited via @AWare).
|
Hi @joelstein Have you try this with Blaze enabled? |
|
@ghabriel25 Yes, I tested it with Blaze enabled, and it works correctly. |
joshhanley
left a comment
There was a problem hiding this comment.
@joelstein thanks for the PR! There was one small issue where $indicator was no longer being treated as truthy, like the original implemention had. So I've updated it to support that. Otherwise, all looks good to me.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Reviewed — |
The scenario
Users are accustomed to radio buttons with the indicator on the left. I'd like the ability to easily use this convention.
The problem
The
indicatorprop does not currently supportleftorstart.The solution
I extended the radio
cardsvariant'sindicatorprop to accept a position.start/leftrender the indicator on the left side of the card, whileend/right/truekeep the existing right-aligned default, andfalsecontinues to hide it. The position can be set per card or on the group (inherited via@aware).Fixes #2654.