-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(leadspace & button group): add print friendly styles (#7608)
### Related Ticket(s) DDS Issue: #7413 HC JIRA Ticket: https://jsw.ibm.com/browse/HC-2297 ### Description - This PR adds print-friendly styles for the Button Group and Leadspace components and variations based on the design specs (see below). - Lead space: https://ibm.ent.box.com/file/879963299367 - Button group: https://ibm.ent.box.com/file/879964531443 ### Changelog **Changed** - Add `href` prop to `renderInner()` event so that we can showcase the button `href` for print mode type and hide it on normal media types. ### Expected designs ![Screen Shot 2021-11-05 at 12 24 14 PM](https://user-images.githubusercontent.com/1815714/140564375-cc470ed9-b5db-44ef-843b-57dbc253c2bc.png) ![Screen Shot 2021-11-05 at 12 24 23 PM](https://user-images.githubusercontent.com/1815714/140564380-1f621e5a-8faf-46b7-805c-a4c4750a0140.png) ### Testing - Visit the "Button group" and "Leadspace" components within the Storybook preview. - Inspect the page using Chrome DevTools and open the rendering tab. - Scroll down to the Emulate CSS Media Type and selected "Print" - From here you should be able to view the print style and compare it with the design specs to ensure the styling are looking as expected. <!-- 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) -->
- Loading branch information
Showing
4 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters