-
Notifications
You must be signed in to change notification settings - Fork 156
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
docs(pictogram-item): add select pictogram knob #7661
docs(pictogram-item): add select pictogram knob #7661
Conversation
Deploy preview created for package Built with commit: 07f42c438e9cb4de8ce584911e0968d0a4949c25 |
Deploy preview created for package Built with commit: 07f42c438e9cb4de8ce584911e0968d0a4949c25 |
23eb79a
to
fc812fe
Compare
Deploy preview created for package Built with commit: 07f42c438e9cb4de8ce584911e0968d0a4949c25 |
Deploy preview created for package Built with commit: 089e1cc47400c9e64ac58e25fb7fac880d50d6dc |
Deploy preview created for package Built with commit: 07f42c438e9cb4de8ce584911e0968d0a4949c25 |
Deploy preview created for package Built with commit: 07f42c438e9cb4de8ce584911e0968d0a4949c25 |
Deploy preview created for package Built with commit: 07f42c438e9cb4de8ce584911e0968d0a4949c25 |
fc812fe
to
089e1cc
Compare
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.
LGTM!
### Related Ticket(s) #7433 ### Description This PR adds Pictogram Item e2e tests for the following scenarios a. Check pictogram item and content is loaded b. Check the Link with icon is loaded and clickable c. Verify Pictogram item can be customized (desktop, touch, pattern) [depends on #7661] d. Customize theme from Carbon theme and verify gray 10, gray 90 and gray 100 theme. <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Related Ticket(s)
unblocks #7433
Description
This PR adds a pictogram selector knob to the web components storybook to match the React storybook.
The SVGs are currently hard coded as a temporary stop gap to unblock #7433 tests, but we should probably import the pictograms directly from the upstream Carbon package. We have a couple of options on how to do this (this can be an engineering huddle discussion):
@carbon/pictograms
as a dependency, addsvg-inline-loader
for webpack, and import the SVGs directly inlineor
carbon-web-components
so that we can import pictogram helpers similar to the icon helpers we currently use (leaning towards this so that we can use them in other components in the library)Either of these can be implemented in the future to avoid hard coding pictograms
Changelog
New