Skip to content

Commit 24bd31c

Browse files
committed
small code cleanup
1 parent 7332d06 commit 24bd31c

File tree

3 files changed

+4
-5
lines changed
  • packages/components/src
  • showcase/tests/integration/components/hds/layout/flex

3 files changed

+4
-5
lines changed

packages/components/src/components/hds/layout/flex/index.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{#if (eq this.componentTag "div")}}
66
<div class={{this.classNames}} ...attributes>{{yield (hash Item=(component "hds/layout/flex/item"))}}</div>
77
{{else}}
8-
{{#let (element this.componentTag) as |Tag|}}<Tag class={{this.classNames}} ...attributes>{{yield
9-
(hash Item=(component "hds/layout/flex/item"))
10-
}}</Tag>{{/let}}
8+
{{#let (element this.componentTag) as |Tag|}}
9+
<Tag class={{this.classNames}} ...attributes>{{yield (hash Item=(component "hds/layout/flex/item"))}}</Tag>
10+
{{/let}}
1111
{{/if}}

packages/components/src/styles/components/layout/flex.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
.hds-layout-flex--column-gap-48 { --hds-layout-flex-column-gap: 48px; }
110110

111111

112-
// FLEX ITEM
112+
// LAYOUT > FLEX > ITEM
113113

114114
// note: these are just the most common values for `flex-[basis|grow|shrink]`
115115
// all other special cases are handled via inline styles

showcase/tests/integration/components/hds/layout/flex/index-test.js

-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ module('Integration | Component | hds/layout/flex/index', function (hooks) {
9595
await render(hbs`<Hds::Layout::Flex id="test-layout-flex" />`);
9696
assert
9797
.dom('#test-layout-flex')
98-
.doesNotHaveClass(/hds-layout-flex--gap-/)
9998
.doesNotHaveClass(/hds-layout-flex--row-gap-/)
10099
.doesNotHaveClass(/hds-layout-flex--column-gap-/);
101100
});

0 commit comments

Comments
 (0)