Skip to content

Commit 0de9dca

Browse files
authored
Merge pull request #211 from rackerlabs/rename-shadow-dom-files
refactor(shadow dom): update shadow dom files to appropriate names
2 parents e721877 + 8bbd4f8 commit 0de9dca

19 files changed

+20
-20
lines changed

bin/start.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ browserSync.init({
3939
`${CONFIG.docsDir}/*`,
4040
`${CONFIG.docsDir}/**/*`,
4141
`${CONFIG.sourceDir}/*.less`,
42-
`${CONFIG.sourceDir}/**/*.less`,
43-
`!${CONFIG.sourceDir}/**/_*.less`, // (-) ShadowDOM CSS
42+
`${CONFIG.sourceDir}/helix-ui/styles/**/*.less`,
4443
],
4544
fn: _.debounce(function () {
4645
compileStyles();
@@ -53,7 +52,8 @@ browserSync.init({
5352
match: [
5453
`${CONFIG.sourceDir}/*.js`,
5554
`${CONFIG.sourceDir}/**/*.js`,
56-
`${CONFIG.sourceDir}/**/_*.less`, // (+) ShadowDOM CSS
55+
`${CONFIG.sourceDir}/helix-ui/elements/*.less`, // (+) ShadowDOM CSS
56+
`${CONFIG.sourceDir}/helix-ui/elements/*.html`, // (+) ShadowDOM Markup
5757
],
5858
fn: _.debounce(compileScripts, 1500),
5959
},

src/helix-ui/elements/HXAccordionPanelElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { HXElement } from './HXElement';
2-
import shadowStyles from './_hx-accordion-panel.less';
2+
import shadowStyles from './HXAccordionPanelElement.less';
33

44
const tagName = 'hx-accordion-panel';
55
const template = document.createElement('template');

src/helix-ui/elements/_hx-accordion-panel.less renamed to src/helix-ui/elements/HXAccordionPanelElement.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "./_hx-element";
1+
@import "./HXElement";
22
@import "elements/hx-icon";
33

44
#toggle {
File renamed without changes.

src/helix-ui/elements/HXAlertElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { HXElement } from './HXElement';
2-
import shadowHtml from './_hx-alert.html';
3-
import shadowStyles from './_hx-alert.less';
2+
import shadowHtml from './HXAlertElement.html';
3+
import shadowStyles from './HXAlertElement.less';
44

55
const tagName = 'hx-alert';
66
const template = document.createElement('template');

src/helix-ui/elements/_hx-alert.less renamed to src/helix-ui/elements/HXAlertElement.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "./_hx-element";
1+
@import "./HXElement";
22
@import "elements/hx-icon";
33

44
button {

src/helix-ui/elements/HXCheckboxElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { HXElement } from './HXElement';
22
import { KEYS } from '../util';
3-
import shadowStyles from './_hx-checkbox.less';
3+
import shadowStyles from './HXCheckboxElement.less';
44

55
const tagName = 'hx-checkbox';
66
const template = document.createElement('template');

src/helix-ui/elements/_hx-checkbox.less renamed to src/helix-ui/elements/HXCheckboxElement.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "./_hx-element";
1+
@import "./HXElement";
22
@import "elements/hx-icon";
33

44
#container {
File renamed without changes.

src/helix-ui/elements/HXErrorElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { HXElement } from './HXElement';
2-
import shadowStyles from './_hx-error.less';
2+
import shadowStyles from './HXErrorElement.less';
33

44
const tagName = 'hx-error';
55
const template = document.createElement('template');

0 commit comments

Comments
 (0)