-
Notifications
You must be signed in to change notification settings - Fork 794
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
AI doc update - Select & Date picker #4060
Changes from all commits
1e2e35b
11ec608
3e2c8a6
5798903
27564f3
f2a49d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hi @Kritvi-bhatia17, just one more observation, the input field in this image should show some 'AI selected option' Here's an example from the dropdown component: Subsequently, while showing the revert image, just change the option item. |
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @alina-jacob |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,24 @@ Select allows users to choose one option from a list of values. | |
|
||
</PageDescription> | ||
|
||
<InlineNotification> | ||
|
||
Experimental slug is now available for | ||
[select](https://react.carbondesignsystem.com/?path=/story/experimental-unstable-slug-examples--select). | ||
This addition changes the visual appearance of the component and introduces an | ||
AI explainability feature when AI is present in the component. | ||
|
||
</InlineNotification> | ||
|
||
<AnchorLinks> | ||
|
||
<AnchorLink>Live demo</AnchorLink> | ||
<AnchorLink>Overview</AnchorLink> | ||
<AnchorLink>Formatting</AnchorLink> | ||
<AnchorLink>Content</AnchorLink> | ||
<AnchorLink>Universal behaviors</AnchorLink> | ||
<AnchorLink>AI presence</AnchorLink> | ||
<AnchorLink>Related</AnchorLink> | ||
<AnchorLink>Feedback</AnchorLink> | ||
|
||
</AnchorLinks> | ||
|
@@ -415,6 +426,67 @@ red border, an error icon indicator, and an error message. | |
</Column> | ||
</Row> | ||
|
||
## AI presence | ||
|
||
Select has a modification that takes on the AI visual styling when the AI slug | ||
is present in the input. The AI variant functions the same as the normal version | ||
except with the addition of the AI slug which is both a visual indicator and the | ||
trigger for the explainability popover. | ||
|
||
More information about designing for AI guidelines is coming soon. | ||
|
||
<Row> | ||
<Column colLg={8}> | ||
|
||
<Tabs> | ||
|
||
<Tab label="Default"> | ||
|
||
![Enabled state of default select with AI presence](images/select-usage-AI-presence-default.png) | ||
|
||
</Tab> | ||
|
||
<Tab label="Fluid"> | ||
|
||
![Enabled state of fluid select with AI presence](images/select-usage-AI-presence-fluid.png) | ||
|
||
</Tab> | ||
|
||
</Tabs> | ||
|
||
</Column> | ||
</Row> | ||
|
||
### Revert to AI | ||
|
||
A select can toggle between the AI variant and the non-AI variant depending on | ||
the user’s interaction. If the user manually overrides the AI-suggested content | ||
then the input will change from the AI variant to the default variant. Once | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "content then the input will change from the AI variant to the non-AI variant." |
||
edited, the user should still be able to switch back to the initially AI | ||
generated content via a revert to AI button. | ||
|
||
<Row> | ||
<Column colLg={8}> | ||
|
||
<Tabs> | ||
|
||
<Tab label="Default"> | ||
|
||
![Enabled state of default select with AI presence](images/select-usage-revert-to-AI-default.png) | ||
|
||
</Tab> | ||
|
||
<Tab label="Fluid"> | ||
|
||
![Enabled state of fluid select with AI presence](images/select-usage-revert-to-AI-fluid.png) | ||
|
||
</Tab> | ||
|
||
</Tabs> | ||
|
||
</Column> | ||
</Row> | ||
|
||
## Related | ||
|
||
- If there are fewer than three options to choose from, use a | ||
|
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.
Hi @Kritvi-bhatia17 just noticed this default to non-AI variant change in the usage tab for Date picker and Select component, rest is all good! 🚀
"content then the input will change from the AI variant to the non-AI variant."