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

Styles #434

Merged
merged 4 commits into from
Oct 7, 2024
Merged

Styles #434

merged 4 commits into from
Oct 7, 2024

Conversation

anoblet
Copy link
Collaborator

@anoblet anoblet commented Oct 1, 2024

Copy link

github-actions bot commented Oct 1, 2024

size-limit report 📦

Path Size
packages/cxl-ui/pkg/dist-web/cxl-ui.js 44.75 KB (-0.01% 🔽)
packages/cxl-ui/pkg/dist-web/cxl-ui-jwplayer.js 11.89 KB (0%)
packages/cxl-ui/pkg/dist-web/cxl-ui-playbooks.js 29.23 KB (0%)
packages/cxl-ui/pkg/dist-web/vendor.js 138.23 KB (0%)
packages/cxl-ui/pkg/dist-web/cxl-ui-institute.js, packages/cxl-ui/pkg/dist-web/cxl-ui-jwplayer.js, packages/cxl-ui/pkg/dist-web/cxl-ui-playbooks.js, packages/cxl-ui/pkg/dist-web/cxl-ui.js, packages/cxl-ui/pkg/dist-web/manifest.js, packages/cxl-ui/pkg/dist-web/unresolved.js, packages/cxl-ui/pkg/dist-web/vendor.js 277.57 KB (-0.01% 🔽)

Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

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

Please also commit "Increase font size" styles which are currently in institute customizer

@@ -1,10 +1,11 @@
/* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix -- some of these are necessary for line-clamp implementation */
/* stylelint-disable declaration-no-important */
/* stylelint-disable declaration-no-important, order/properties-order */

Choose a reason for hiding this comment

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

why properties-order rule is bad and you removed it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's too much of a headache remembering the CSS Spec. I prefer alphabetical.

Choose a reason for hiding this comment

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

Isn't it corrected automatically by linter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not :/ I don't mind using the default rules, though we could also use this? https://github.com/hudochenkov/stylelint-order/tree/master/rules/properties-alphabetical-order

@pawelkmpt
Copy link

Please also commit "Increase font size" styles which are currently in institute customizer

@anoblet follow up

@anoblet
Copy link
Collaborator Author

anoblet commented Oct 4, 2024

Will get it done by EOD.

@anoblet
Copy link
Collaborator Author

anoblet commented Oct 4, 2024

We have these styles in customizer, which conflict with what's in this PR:

details {
  margin: var(--lumo-space-m) 0;
}

details summary {
  font-weight: 900;
  margin-bottom: var(--lumo-space-s);
}

I believe that we should remove these from customizer and go with what's in this PR.

@pawelkmpt
Copy link

We have these styles in customizer, which conflict with what's in this PR:

details {
  margin: var(--lumo-space-m) 0;
}

details summary {
  font-weight: 900;
  margin-bottom: var(--lumo-space-s);
}

I believe that we should remove these from customizer and go with what's in this PR.

Where do you see the conflict?
Native details are used for FAQ, e.g. https://cxl.com/institute/programs/conversion-optimization/
and what you pushed here is for vaadin-details https://cxl.com/institute/lesson/where-and-what-to-test-to-maximize-roi/

@pawelkmpt pawelkmpt merged commit f8c9d55 into master Oct 7, 2024
5 checks passed
@pawelkmpt pawelkmpt deleted the anoblet/feat/styles branch October 7, 2024 11:12
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