Skip to content
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

Allow Responsive Display Global Props #1846

Merged

Conversation

diontheroulde
Copy link
Contributor

@diontheroulde diontheroulde commented Apr 12, 2022

React Kit Coverage

Screens

Screen Shot 2022-04-28 at 7 17 05 PM

Screen Shot 2022-04-28 at 7 18 01 PM

Breaking Changes

[Yes/No (Explain)]

Runway Ticket URL

https://nitro.powerhrg.com/runway/backlog_items/PLAY-33)

How to test this

[INSERT TESTING DETAILS]

Checklist:

  • LABELS Add a label: enhancement, bug, improvement, new kit, deprecated, or breaking. See Changelog & Labels for details.
  • DEPLOY Please add the Milano label when you are ready for a review.
  • SCREENSHOT Please add a screen shot or two.
  • SPECS Please cover your changes with specs.
  • READ DOCS Please make sure you have read and understand the Playbook Release Process

@diontheroulde diontheroulde requested a review from a team as a code owner April 12, 2022 19:41
@diontheroulde diontheroulde self-assigned this Apr 28, 2022
@diontheroulde diontheroulde added the enhancement New Features, Props, & Variants (USED IN CHANGELOG) label Apr 28, 2022
Copy link
Contributor

@RudeChowder RudeChowder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work so far! Let me know what you think about the token comments. That's how they seem to me at first glance, but I'm not totally familiar with what they should be doing.

playbook/app/pb_kits/playbook/pb_card/_card_mixin.scss Outdated Show resolved Hide resolved
playbook/app/pb_kits/playbook/utilities/_display.scss Outdated Show resolved Hide resolved
playbook/app/pb_kits/playbook/utilities/_display.scss Outdated Show resolved Hide resolved
playbook/app/pb_kits/playbook/utilities/globalProps.ts Outdated Show resolved Hide resolved
playbook/lib/playbook/display.rb Show resolved Hide resolved
@thestephenmarshall thestephenmarshall changed the title WIP [PLAY-33] Added conditional to displayProps [PLAY-33] Allow Responsive Display Global Props May 2, 2022
@thestephenmarshall thestephenmarshall added needs alpha testing milano 20 MAX - Deploy this PR to a review environment via Milano labels May 2, 2022
@app-milano app-milano bot temporarily deployed to pr1846 May 2, 2022 16:48 Inactive
@thestephenmarshall thestephenmarshall force-pushed the PLAY-33-Global-responsive-display-props-in-all-kits branch from 50a0645 to de2ccbc Compare May 3, 2022 22:20
@app-milano app-milano bot temporarily deployed to pr1846 May 3, 2022 22:41 Inactive
@app-milano app-milano bot temporarily deployed to pr1846 May 4, 2022 18:02 Inactive
@thestephenmarshall thestephenmarshall force-pushed the PLAY-33-Global-responsive-display-props-in-all-kits branch from 3d003c5 to 373783c Compare May 4, 2022 18:24
@@ -28,3 +48,19 @@ $breakpoints: (
@content;
}
}

@mixin break_on($min: null, $max: null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mixin will create a breakpoint grid with min and max sizes. This is the only way we could get the CSS declarations to apply.

xl: (
min: $screen-xl-min,
)
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relates to the break_on mixin

@thestephenmarshall thestephenmarshall changed the title [PLAY-33] Allow Responsive Display Global Props Allow Responsive Display Global Props May 12, 2022
@thestephenmarshall thestephenmarshall merged commit 8431aff into master May 12, 2022
@thestephenmarshall thestephenmarshall deleted the PLAY-33-Global-responsive-display-props-in-all-kits branch May 12, 2022 18:01
thestephenmarshall added a commit that referenced this pull request May 12, 2022
* Added conditional to displayProps

* Added breakpoint query

* Removed commented out code

* Trying to display gloabl props

* Display global props

* Display breakpoints on rails

* Working on multiple screen sizes

* Display global props at multiple screen sizes

* Added Props pill back for display

* Separate base types

* Fix display.rb css output

* Global props work fro single display value

* Edited visual guidelines styling

* Fixed syntax for display.ts

* Switched display.ts syntax back

* Fixed syntax error this time

* Fix types and SCSS classes

* Add breakpoints grid to screen sizes

* Don't make changes to unassociated files

* All files should have one empty line at the end per code style rules

* Add colors type

Co-authored-by: Dion Theroulde <[email protected]>
Co-authored-by: Stephen Marshall <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New Features, Props, & Variants (USED IN CHANGELOG) milano 20 MAX - Deploy this PR to a review environment via Milano needs alpha testing Ready for Release merged to master, ready for a versioned released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants