-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft ToggleGroup docs & examples #3883
base: master
Are you sure you want to change the base?
Conversation
@taysea the deploy link doesn't seem to be working. |
Added the PR # to the link, should work now. |
Added generic examples to use cases. Removed Type as a heading because it was the same content as use cases.
@vavalos5 - some feedback for your posted preview: Under the Types: Single Select section, currently mixes different conceptual ideas, which may confuse users. ‘Icon Only’ and ‘Label and Icon’ describe the visual styling of toggle buttons, whereas ‘Filtering’ describes their functional use case. To avoid confusion, it would be clearer to separate visual styling options from functional use cases. For instance, ‘Icon Only’ and ‘Label and Icon’ should be covered by the anatomy subsection, while ‘Filtering’ should be covered under a ‘Use Cases’ subsection. This distinction helps users understand that styling options define how toggle buttons look, whereas use cases define how they function. Further, isn't it true that those styling options apply to both types? they were just listed under Single Select. In addition, a more appropriate descriptor for the toggle function that switches between different views, such as a tabular layout and a map view, in a data collection set would be "view toggle" not Filtering. Those terms accurately reflect the functionality of switching between different visual representations of the same data. |
@SOjaHPE you are wanting the description for the component to be I was thinking a little more broader if we decouple this from CheckBoxGroup and RadioButtonGroup. Since you can have a controlled example using ☝️ we can add something in the sense of in single allows the user to turn only one on then multiple more can be turned on and off. Its just they wont always have the native RadioButtonGroup behavior or CheckBoxGroup so my thoughts were not to add those. @taysea any thoughts here? |
agree here we can have something in the anatomy that shows how you can put an icon or label or both. Then in use cases we can have
Yes this is ture
not sure Im following here ☝️ |
@britt6612 In the current guidance that @vavalos5 posted, under the Types: Single select section, the third example uses the term 'Filtering' when referencing the toggling between data collection view types. Just pointing out that filtering doesn't accurately reflect that use case, it is 'toggling views' or 'view toggle' for the appropriate data collection type. |
@taysea Would be great to get your input here since you and I discussed nesting these items under Filtering. Originally under "use cases" which I agree would live here. "Use cases" are the difference kinds of scenarios where ToggleGroup might appear and "types" are the overall kinds of ToggleGroups there are: single select and multi-select. Happy to set a call to discuss naming here. I seem to have swapped them. |
@SOjaHPE gotcha yeah I agree there with filtering just was a little confused about the wording here: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
aries-site/src/examples/components/togglegroup/ToggleGroupViews.js
Outdated
Show resolved
Hide resolved
aries-site/src/examples/components/togglegroup/ToggleGroupViews.js
Outdated
Show resolved
Hide resolved
aries-site/src/examples/components/togglegroup/ToggleGroupViews.js
Outdated
Show resolved
Hide resolved
aries-site/src/examples/components/togglegroup/ToggleGroupViews.js
Outdated
Show resolved
Hide resolved
aries-site/src/examples/components/togglegroup/ToggleGroupViews.js
Outdated
Show resolved
Hide resolved
…s.js Co-authored-by: Taylor Seamans <[email protected]>
…s.js Co-authored-by: Taylor Seamans <[email protected]>
Co-authored-by: Taylor Seamans <[email protected]>
Co-authored-by: Taylor Seamans <[email protected]>
Co-authored-by: Taylor Seamans <[email protected]>
Co-authored-by: Taylor Seamans <[email protected]>
…s.js Co-authored-by: Taylor Seamans <[email protected]>
<DataSummary /> | ||
{value === 'table' && ( | ||
<DataTable | ||
aria-describedby="spaceX" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aria-describedby="spaceX" |
It doesn't look like any element has this id, should we remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can remove but it was throwing an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What error do you get?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can disable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can just add some text with the id that describes the datatable? Looks like that is the intent of the rule
https://github.com/grommet/eslint-plugin-grommet/blob/master/docs/rules/datatable-aria-describedby.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay I can add
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Deploy Preview
What does this PR do?
Scaffold page for ToggleGroup docs.
TO DO:
Where should the reviewer start?
What testing has been done on this PR?
In addition to the feature you are implementing, have you checked the following:
General UX Checks
Accessibility Checks
Code Quality Checks
How should this be manually tested?
Any background context you want to provide?
What are the relevant issues?
Screenshots (if appropriate)
Should this PR be mentioned in Design System updates?
Is this change backwards compatible or is it a breaking change?