Skip to content

chore:n8nForm Node add css variable for media-size>500px #15771

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

depfryer
Copy link

Summary

add CSS variables that were blocking mobile customization. This fix allows proper styling and theming on mobile devices by removing some restrictive CSS constraints.

Review / Merge checklist

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

cubic reviewed 2 files and found no issues. Review PR in cubic.dev.

@n8n-assistant n8n-assistant bot added community Authored by a community member core Enhancement outside /nodes-base and /editor-ui node/improvement New feature or request in linear Issue or PR has been created in Linear for internal review labels May 27, 2025
@Joffcom
Copy link
Member

Joffcom commented May 27, 2025

Hey @depfryer,

Thanks for the PR, We have created "GHC-2203" as the internal reference to get this reviewed.

One of us will be in touch if there are any changes needed, in most cases this is normally within a couple of weeks but it depends on the current workload of the team.

@dana-gill dana-gill requested a review from RomanDavydchuk May 28, 2025 08:58
@@ -32,6 +32,7 @@

/* Colors */
--color-background: #fbfcfe;
--background-mobile-color: #ffffff;
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to stick with the other variable names and use something like --color-background-mobile

@@ -17,10 +16,10 @@ export const cssVariables = `
--font-size-html-h4: 14px;
--font-size-html-h5: 12px;
--font-size-html-h6: 10px;
--font-size-subheader: 14px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here - not used in form-trigger.handlebars, but used in form-trigger-404.handlebars, form-trigger-409.handlebars and form-trigger-completion.handlebars

Comment on lines -42 to +41
--color-html-link: #ff6d5a;
--color-header-subtext: #7e8186;
--color-html-link: #FF6D5A;
Copy link
Contributor

Choose a reason for hiding this comment

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

--color-header-subtext - again, not used in form-trigger.handlebars, but used in form-trigger-404.handlebars, form-trigger-409.handlebars and form-trigger-completion.handlebars. Also, why would you update the hex to be capitalized?

Comment on lines -45 to +43
/* Border Radii */
/* Border Radius */
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

--border-radius-card: 8px;
--border-radius-input: 6px;
--border-radius-clear-btn: 50%;
--card-border-radius: 8px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here - not used in form-trigger.handlebars, but used in form-trigger-404.handlebars, form-trigger-409.handlebars and form-trigger-completion.handlebars

Comment on lines -58 to -59
--card-padding: 24px;
--card-margin-bottom: 16px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

Comment on lines -55 to +56
/* Border Radii */
/* Border Radius */
Copy link
Contributor

Choose a reason for hiding this comment

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

"Radii" is the plural of "Radius" - no need to change this comment

Comment on lines -3 to +4
--font-family: 'Open Sans', sans-serif;
--font-weight-normal: 400;
--font-weight-bold: 600;
/* Fonts */
--font-family: "Open Sans", sans-serif;
Copy link
Contributor

Choose a reason for hiding this comment

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

Even though these variables are not used in form-trigger.handlebars, they are used in form-trigger-404.handlebars, form-trigger-409.handlebars and form-trigger-completion.handlebars. Do not remove those

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Authored by a community member core Enhancement outside /nodes-base and /editor-ui in linear Issue or PR has been created in Linear for internal review node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants