-
Notifications
You must be signed in to change notification settings - Fork 323
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
Dashboard Issues #11685
Dashboard Issues #11685
Conversation
const currentPlatform = platform() | ||
|
||
document.documentElement.setAttribute('data-version', '%ENSO_IDE_VERSION%') | ||
document.documentElement.classList.add(currentPlatform.toLowerCase()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scuff
can we prefix the platform name please? so like platform-macos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess mostly to indicate that they are variants of a single property (meaning that there shouldn't be more than one of platform-
on any element)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you mean. I can specify macos:text-12 windows:text-24 linux:text-10
. Yes, they exclude each other, but i don't understand how platform
relates to it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh true 💀 this is a modifier/variant, not a property
but i think regardless it still makes sense to prefix the classes/variants just to make it clear that they are related to each other. just my two cents
also any prefix works, it doesn't have to be platform
@@ -657,6 +657,10 @@ inset 0 -36px 51px -51px #00000014`, | |||
|
|||
addVariant('not-focus', '&:where([data-rac]):not([data-focused])') | |||
addVariant('not-selected', '&:where([data-rac]):not([data-selected])') | |||
|
|||
addVariant('windows', '.windows &') | |||
addVariant('macos', '.macos &') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if applying the prefix suggestion above then we should do it here too:
addVariant('platform-macos', 'html.platform-macos &')
🧪 Storybook is successfully deployed!📊 Dashboard:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR ✅
Pull Request Description
Closes: https://github.com/enso-org/cloud-v2/issues/1592
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
or the Snowflake database integration, a run of the Extra Tests has been scheduled.