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

feat(grid): update breakpoint-down with correct max width #5791

Conversation

joshblack
Copy link
Contributor

Closes #5782

Updates the logic of breakpoint-down to align more closely with the expectation that the range would not include the breakpoint itself. This borrows a bit of logic from bootstrap's implementation in order to satisfy the requirement that the breakpoint only applies for widths smaller than the given breakpoint.

Changelog

New

Changed

  • Update carbon--breakpoint-down to not include given breakpoint in media query

Removed

@joshblack joshblack requested a review from a team as a code owner April 2, 2020 17:06
@ghost ghost requested review from dakahn and emyarod April 2, 2020 17:07
@netlify
Copy link

netlify bot commented Apr 2, 2020

Deploy preview for carbon-elements ready!

Built with commit f83bacd

https://deploy-preview-5791--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Apr 2, 2020

Deploy preview for carbon-components-react ready!

Built with commit f83bacd

https://deploy-preview-5791--carbon-components-react.netlify.com

@joshblack joshblack merged commit 033ba77 into carbon-design-system:master Apr 6, 2020
@joshblack joshblack deleted the 5782-update-breakdown-down-mixin branch April 6, 2020 19:28
kodiakhq bot pushed a commit to carbon-design-system/carbon-for-ibm-dotcom that referenced this pull request Jan 20, 2021
### Related Ticket(s)

#4920 

### Description

Changes the target breakpoint in the media query to not include the breakpoint itself. This was causing the `L1` to be hidden in all conditions. See [this](carbon-design-system/carbon#5791) PR for more details.

### Changelog

**Changed**

- change `L1` responsive breakpoint to `799.98px` to exclude the breakpoint target (`800px`)


<!-- 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 -->
<!-- *** "package: styles": Carbon Expressive -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
kodiakhq bot pushed a commit to carbon-design-system/carbon-for-ibm-dotcom that referenced this pull request Jan 20, 2021
### Related Ticket(s)

#4920 

Duplicate of #4941 which targeted incorrect branch.

### Description

Changes the target breakpoint in the media query to not include the breakpoint itself. This was causing the `L1` to be hidden in all conditions. See [this](carbon-design-system/carbon#5791) PR for more details.

### Changelog

**Changed**

- change `L1` responsive breakpoint to `799.98px` to exclude the breakpoint target (`800px`)


<!-- 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 -->
<!-- *** "package: styles": Carbon Expressive -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
IgnacioBecerra pushed a commit to IgnacioBecerra/ibm-dotcom-library that referenced this pull request Feb 22, 2021
…4941)

### Related Ticket(s)

carbon-design-system#4920 

### Description

Changes the target breakpoint in the media query to not include the breakpoint itself. This was causing the `L1` to be hidden in all conditions. See [this](carbon-design-system/carbon#5791) PR for more details.

### Changelog

**Changed**

- change `L1` responsive breakpoint to `799.98px` to exclude the breakpoint target (`800px`)


<!-- 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 -->
<!-- *** "package: styles": Carbon Expressive -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

off-by-one error for breakpoint mixins using max-width
3 participants