Adaptive-Web-Components icon indicating copy to clipboard operation
Adaptive-Web-Components copied to clipboard

feat: create model for adding appearances to components

Open KingOfTac opened this issue 2 years ago • 2 comments

Feature Request

Expected Behavior

Current Behavior

Possible Solution

Context

Examples

KingOfTac avatar May 09 '23 20:05 KingOfTac

I've come across another place I'd like to use this model, which is that some components have different presentations. For instance, a component often referred to as a "segmented control" is, from an ARIA perspective, either a radiogroup or tablist. I'd like to use Adaptive UI to configure that presentation based on an attribute.

I realize with the model we're considering building we're not locked into the word "appearance", but I think "variant" may be a stronger default. To me it implies any difference that might not be strictly appearance related, and it better defines even a semantic name like "primary" or "secondary" because that's more about the function, which happens to have a different appearance often.

That said, I'm hoping we can work on this soon 😬

bheston avatar Sep 07 '23 23:09 bheston

I've come across another place I'd like to use this model, which is that some components have different presentations. For instance, a component often referred to as a "segmented control" is, from an ARIA perspective, either a radiogroup or tablist. I'd like to use Adaptive UI to configure that presentation based on an attribute.

I realize with the model we're considering building we're not locked into the word "appearance", but I think "variant" may be a stronger default. To me it implies any difference that might not be strictly appearance related, and it better defines even a semantic name like "primary" or "secondary" because that's more about the function, which happens to have a different appearance often.

That said, I'm hoping we can work on this soon 😬

Agree with using variant over appearance. What would be an example of a segmented control?

KingOfTac avatar Sep 12 '23 22:09 KingOfTac