-
Notifications
You must be signed in to change notification settings - Fork 13.4k
fix(css): Responsive Display Attributes #18601
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
Conversation
Also related with ionic-team/ionic-docs#616 |
This fix would be a breaking change, considering that the code is correct, but the docs aren't. |
@abennouna Thanks, but I’m not sure the code is correct. Not simply conceptually, as I and @dkrahn claim (see: #18600 (comment)), but the currently rendered css is faulty:
Currently, hiding content on phones mean using: Regarding “breaking change”, I doubt many would get affected. |
Agreed, this makes more sense! I just stopped using this and changed to my own, which takes into account the global grid attributes --ion-grid-width | Width of the fixed Grid |
…am#18957) * Remove close button * update tests * update tests * add build
BREAKING CHANGES Removes ion-nav-pop, ion-nav-push and ion-nav-set-root in favor of using ion-nav-link with router-direction
BREAKING CHANGES Removes `scss` files from the distributed files. Please use CSS variables for theming instead.
BREAKING CHANGES The Ionic default colors have been updated to the following: primary: #3880ff secondary: #3dc2ff tertiary: #5260ff success: #2dd36f warning: #ffc409 danger: #eb445a light: #f4f5f8 medium: #92949c dark: #222428 `primary`, `light` and `dark` have not changed. The contrast color for `warning` has been updated to `#000`.
BREAKING CHANGES Removes all CSS utility attributes. Please use CSS classes instead. See the documentation for the correct class names: https://ionicframework.com/docs/layout/css-utilities
BREAKING CHANGES Skeleton text's `width` property has been removed. Please use CSS instead to set the width.
…8935) BREAKING CHANGES The deprecated `ion-anchor` component has been removed in favor using `ion-router-link`. It should still only be used with vanilla and Stencil JavaScript projects. For Angular projects, use an `<a>` and `routerLink` with the Angular router.
…ic-team#18953) BREAKING CHANGES The `show-cancel-button` property of the searchbar no longer accepts boolean values. Accepted values are strings: `"focus"`, `"always"`, `"never"`. The following should change: ``` <ion-searchbar show-cancel-button> <ion-searchbar show-cancel-button="true"> <ion-searchbar show-cancel-button="false"> ``` becomes ``` <ion-searchbar show-cancel-button="focus"> <ion-searchbar show-cancel-button="focus"> <ion-searchbar show-cancel-button="never"> ```
Thank you for the PR! So I made some changes to the
Let me know your thoughts, thanks!! |
…ic-team#18954) * remove no border ref * change to dispaly * update usage
@brandyscarney Thanks. Yes, the rendered css is correct.
Yea, remove them. it doesn't make any sense to use those classes. (one should use |
So I'm going to keep them for now, removing them would require a change to the media query used to generate this and all of the other utils, and I would rather keep it for consistency. The other CSS util files do something similar, it just doesn't look "as off" because we add For example, the text transformation classes generate:
instead of using the |
BREAKING CHANGES The responsive display classes found in the `display.css` file have had their media queries updated to better reflect how they should work. Instead of using the maximum value of that breakpoint (for `.ion-hide-{breakpoint}-down` classes) the maximum of the media query will be the minimum of that breakpoint. fixes #18600
BREAKING CHANGES The responsive display classes found in the `display.css` file have had their media queries updated to better reflect how they should work. Instead of using the maximum value of that breakpoint (for `.ion-hide-{breakpoint}-down` classes) the maximum of the media query will be the minimum of that breakpoint. fixes #18600
BREAKING CHANGES The responsive display classes found in the `display.css` file have had their media queries updated to better reflect how they should work. Instead of using the maximum value of that breakpoint (for `.ion-hide-{breakpoint}-down` classes) the maximum of the media query will be the minimum of that breakpoint. fixes #18600
LOVE this change thank you. |
BREAKING CHANGES The responsive display classes found in the `display.css` file have had their media queries updated to better reflect how they should work. Instead of using the maximum value of that breakpoint (for `.ion-hide-{breakpoint}-down` classes) the maximum of the media query will be the minimum of that breakpoint. fixes #18600
for me this is still not working (having ionic version 4.11.10), when applying the ion-hide-sm-down css class i expect the element to be hidden under 576px like stated here: https://ionicframework.com/docs/layout/css-utilities#ionic-breakpoints but it uses the md breakpoint pixels which is wrong... this is the wrong css generated: |
@nickwinger This change was not added to Ionic 4.11.10. It will be available in the next major release of Ionic Framework. |
See: #18600
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build
) was run locally and any changes were pushednpm run lint
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: 18600
What is the new behavior?
Responsive Display Attributes now works as documented. the compiled
display.css
is now:Does this introduce a breaking change?