-
Notifications
You must be signed in to change notification settings - Fork 2
BP-1293: Add theming support to new rich-text editor for basic redactor configuration #240
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
base: master
Are you sure you want to change the base?
BP-1293: Add theming support to new rich-text editor for basic redactor configuration #240
Conversation
libs/entry-components/styles/modules/vendors/redactor/_buttons-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/redactor/_buttons-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/redactor/_tables-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/redactor/_buttons-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/redactor/_buttons-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/redactor/_buttons-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/redactor/_checkboxes-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/partials/vendors/overrides/redactor/_tables.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/partials/vendors/overrides/redactor/_general.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/partials/vendors/overrides/redactor/_buttons.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/partials/vendors/overrides/redactor/_buttons.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/redactor/_buttons-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/redactor/_tables-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/partials/vendors/overrides/redactor/_general.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/partials/vendors/overrides/rich-text/_buttons.scss
Show resolved
Hide resolved
libs/entry-components/styles/partials/vendors/overrides/rich-text/_forms.scss
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_typography-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_buttons-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_buttons-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_checkboxes-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_checkboxes-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_tables-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_tables-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_tables-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_toolbar-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_typography-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_typography-generator.scss
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_buttons-generator.scss
Outdated
Show resolved
Hide resolved
| $theming-font-weight: map.get($theme, 'general', 'fonts', 'buttons', 'weight'); | ||
| $theming-font-size: map.get($theme, 'general', 'fonts', 'buttons', 'size'); | ||
|
|
||
| $primary-color: if($theming-primary == '' or $theming-primary == null, mat.get-color-from-palette(mat.$primary-palette, 500), $theming-primary); |
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.
@Cvetanovic please communicate with @jovana-marceta where she has found this shorter IF syntax for Scss because I was not able to find it the latest official docs (which doesn't mean it's not working).
|
|
||
| .enigmatry-redactor-content { | ||
|
|
||
| $checkbox-color: if($theming-accent-color == '' or $theming-accent-color == null, |
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 understood we need to check for empty string and null for variables coming from AM, but this is our theme which leads me to the fact something's maybe not right on your machine, @jovana-marceta .
@Cvetanovic please switch to this branch and try testing this if condition without empty string and communicate with Jovana (and me eventually) whether is working and what exactly isn't since we expect null value if unset and not an empty string.
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_tables-generator.scss
Outdated
Show resolved
Hide resolved
libs/entry-components/styles/modules/vendors/rich-text/necessary-mix/_buttons-generator.scss
Outdated
Show resolved
Hide resolved
…uilding-blocks into features/BP-1293-Add-theming-support-to-rich-text-editor
https://enigmatry.atlassian.net/browse/BP-1293
The Redactor editor will replace CKEditor. This new rich text editor includes predefined CSS that lacks support for our custom theming system, which covers colors, fonts, spacing, and other customizable options.
To address this, this update introduces a mixin that overrides default values for the following elements used in the Basics & Standard Redactor configurations.
Covered elements: Headings (h1 to h6), toolbar buttons, paragraphs, bullet and numbered lists, checkboxes (to-do items), tables, buttons, and links.
Additionally, our custom Redactor class and light mode by default have been added to the Redactor repository.