Closed massao closed 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
forma-36 | ✅ Ready (Inspect) | Visit Preview | Jul 4, 2024 8:37am |
Latest commit: 92b6ffff6f07b50f06f68c4a46dca09f0441dd69
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Could you please add a story for the mobile view or see if we can fix the Storybook viewport feature? I tried using the Storybook viewport feature to get the responsiveness but it does not seem to work 🤔
Could you please add a story for the mobile view or see if we can fix the Storybook viewport feature? I tried using the Storybook viewport feature to get the responsiveness but it does not seem to work 🤔
Added a With Responsiveness
Story to make it easier, and not have to change all the others
Once the secondary navigation icons are hidden:
Not specified in the design yet:
@denkristoffer
* minimum gap is added but as we can not use container based queries (because of our outdated emotion version) it's super hard to find the sweet spot of width for the switcher.
@Lelith Just guessing but if something is not supported in emotion 10 it would probably be due to the version of stylis
. Maybe we can force it to the latest version and container queries could work. Do you want to try it?
Looks like we need to use stylis v4.1.3 or newer https://github.com/thysultan/stylis/pull/304
* minimum gap is added but as we can not use container based queries (because of our outdated emotion version) it's super hard to find the sweet spot of width for the switcher.
@Lelith Just guessing but if something is not supported in emotion 10 it would probably be due to the version of
stylis
. Maybe we can force it to the latest version and container queries could work. Do you want to try it?Looks like we need to use stylis v4.1.3 or newer thysultan/stylis#304
Actually yes, that could work
@denkristoffer @cf-remylenoir we can try it for sure, i am just at a loss where all the configuration and packages are defined for it, they are not noted in any of the package.json files for forma?
@denkristoffer @cf-remylenoir we can try it for sure, i am just at a loss where all the configuration and packages are defined for it, they are not noted in any of the package.json files for forma?
We have to add an "overrides"
key in package.json
. Docs: https://docs.npmjs.com/cli/v10/configuring-npm/package-json#overrides
@cf-remylenoir @denkristoffer synced with Daniel and we decided to increase all icon sizes for the mobile views. had to do some overwrites for that as we do not have media queries in JS and the icon sizes are not a token, i had to handwrite them. Should we add these sizes also as tokens?
@cf-remylenoir @denkristoffer synced with Daniel and we decided to increase all icon sizes for the mobile views. had to do some overwrites for that as we do not have media queries in JS and the icon sizes are not a token, i had to handwrite them. Should we add these sizes also as tokens?
Does that mean they don't use Icon size="medium"
?
@damann the icon size properties are not setup responsive, they have a single fixed size. If we want to support more responsive designs in the future, we should establish a pattern for Icon Sizes soon
Purpose of PR
Mobile S:
Mobile Medium
Desktop S
Desktop M