Skip to content

Commit 29fe614

Browse files
authored
refactor: cleanup no longer needed usage of registerStyles (#9265)
1 parent 113ba89 commit 29fe614

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

packages/rich-text-editor/gulpfile.cjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ gulp.task('icons', (done) => {
4343
* See https://vaadin.com/commercial-license-and-service-terms for the full
4444
* license.
4545
*/
46-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
46+
import { css } from 'lit';
4747
4848
const template = document.createElement('template');
4949
@@ -90,9 +90,6 @@ export const iconsStyles = css\`\n`;
9090
content: var(--vaadin-rte-icons-redo);
9191
}`;
9292
output += `\n\`;\n`;
93-
output += `
94-
// Register a module with ID for backwards compatibility.
95-
registerStyles('', iconsStyles, { moduleId: 'vaadin-rich-text-editor-icons' });\n`;
9693
fs.writeFile(`src/${fileName}.js`, output, (err) => {
9794
if (err) {
9895
return console.error(err);

packages/rich-text-editor/src/vaadin-rich-text-editor-content-styles.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* See https://vaadin.com/commercial-license-and-service-terms for the full
99
* license.
1010
*/
11-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11+
import { css } from 'lit';
1212

1313
export const contentStyles = css`
1414
[part='content'] {
@@ -113,6 +113,3 @@ export const contentStyles = css`
113113
text-align: right;
114114
}
115115
`;
116-
117-
// Register a module with ID for backwards compatibility.
118-
registerStyles('', contentStyles, { moduleId: 'vaadin-rich-text-editor-content-styles' });

packages/rich-text-editor/src/vaadin-rich-text-editor-icons.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* See https://vaadin.com/commercial-license-and-service-terms for the full
99
* license.
1010
*/
11-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11+
import { css } from 'lit';
1212

1313
const template = document.createElement('template');
1414

@@ -88,6 +88,3 @@ export const iconsStyles = css`
8888
content: var(--vaadin-rte-icons-redo);
8989
}
9090
`;
91-
92-
// Register a module with ID for backwards compatibility.
93-
registerStyles('', iconsStyles, { moduleId: 'vaadin-rich-text-editor-icons' });

packages/rich-text-editor/src/vaadin-rich-text-editor-toolbar-styles.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* See https://vaadin.com/commercial-license-and-service-terms for the full
99
* license.
1010
*/
11-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11+
import { css } from 'lit';
1212
import { iconsStyles } from './vaadin-rich-text-editor-icons.js';
1313

1414
export const buttonsStyles = css`
@@ -178,6 +178,3 @@ export const buttonsStyles = css`
178178
`;
179179

180180
export const toolbarStyles = [iconsStyles, buttonsStyles];
181-
182-
// Register a module with ID for backwards compatibility.
183-
registerStyles('', toolbarStyles, { moduleId: 'vaadin-rich-text-editor-toolbar-styles' });

0 commit comments

Comments
 (0)