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

media-object-refinement #197

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

media-object-refinement #197

wants to merge 20 commits into from

Conversation

sikhote
Copy link
Contributor

@sikhote sikhote commented Dec 26, 2024

Description

  • CdrChoreographer: updates to support more components
  • CdrLayout: always has container-type: inline-size; applied
  • CdrLayout: now accepts a containerName prop
  • CdrMediaObject: overlay works slightly differently, applying a media height and not relying on media's natural height
  • CdrMediaObject: applies media and content styles differently after use in other apps
  • CdrMediaObject: expanded examples
  • CdrMediaObject: changed some structure of sass mixins for easier reuse
  • CdrMediaObject: inner img, picture, video are applied display: block
  • CdrMediaObject" inner content has container-type: inline-size; applied for fluid content compatibility
  • interfaces: updates for accuracy

https://rei.github.io/rei-cedar/

@sikhote sikhote self-assigned this Dec 26, 2024
@sikhote sikhote marked this pull request as ready for review January 9, 2025 22:47
@@ -354,21 +302,17 @@ exports[`CdrMediaObject > snapshot tests > media width dynamic 1`] = `
exports[`CdrMediaObject > snapshot tests > overlay, row align, column align, content configured independently to 50% width 1`] = `
<div
class="cdr-layout cdr-layout--rows cdr-layout--columns cdr-media-object cdr-media-object--overlay"
style="--cdr-layout-rows: auto; --cdr-layout-columns: auto; --cdr-media-object-row-align: center; --cdr-media-object-column-align: end;"
style="--cdr-layout-rows: 56cqw; --cdr-layout-columns: auto; --cdr-media-object-row-align: center; --cdr-media-object-column-align: end;"
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you test this on Firefox? https://caniuse.com/mdn-api_css_cqw_static

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is the link of importance:
https://caniuse.com/mdn-css_types_length_container_query_length_units

With that said, you do bring up a good point about browser support. If we look at the updated browser matrix:
https://rei-coop.atlassian.net/wiki/spaces/FED/pages/229213181/REI+Supported+Browser+Matrix

It looks like iOS safari still does not support container queries (it is supported on v16). I think we should have a chat about all this.

Copy link
Contributor

Choose a reason for hiding this comment

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

My bad, you are right! And we should introduce a polyfill for now. Thoughts @mhewson?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, that one should be enough for polyfilling iOS 15

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.

2 participants