@@ -50,11 +50,12 @@ module('Integration | Component | hds/layout/grid/item', function (hooks) {
50
50
51
51
// COL SPAN
52
52
53
- test ( 'it should render a default column span of 1 if @colSpan is not declared' , async function ( assert ) {
54
- await render ( hbs `<Hds::Layout::Grid::Item id="test-layout-grid" />` ) ;
53
+ // Note: A fallback value of 1 is set in the CSS for the `--hds-layout-grid-column-span` custom property
54
+ test ( 'if the @colSpan prop is not declared, --hds-layout-grid-column-span should be unset' , async function ( assert ) {
55
+ await render ( hbs `<Hds::Layout::Grid::Item id="test-layout-grid-item" />` ) ;
55
56
assert
56
- . dom ( '#test-layout-grid' )
57
- . hasStyle ( { '--hds-layout-grid-column-span' : '1' } ) ;
57
+ . dom ( '#test-layout-grid-item ' )
58
+ . doesNotHaveStyle ( '--hds-layout-grid-column-span' ) ;
58
59
} ) ;
59
60
60
61
test ( 'it should render the correct column span if the @colSpan prop is declared' , async function ( assert ) {
@@ -68,11 +69,12 @@ module('Integration | Component | hds/layout/grid/item', function (hooks) {
68
69
69
70
// ROW SPAN
70
71
71
- test ( 'it should render a default row span of 1 if @rowSpan is not declared' , async function ( assert ) {
72
+ // Note: A fallback value of 1 is set in the CSS for the `--hds-layout-grid-row-span` custom property
73
+ test ( 'if the @rowSpan prop is not declared, --hds-layout-grid-row-span should be unset' , async function ( assert ) {
72
74
await render ( hbs `<Hds::Layout::Grid::Item id="test-layout-grid" />` ) ;
73
75
assert
74
76
. dom ( '#test-layout-grid' )
75
- . hasStyle ( { '--hds-layout-grid-row-span' : '1' } ) ;
77
+ . doesNotHaveStyle ( '--hds-layout-grid-row-span' ) ;
76
78
} ) ;
77
79
78
80
test ( 'it should render the correct row span if the @rowSpan prop is declared' , async function ( assert ) {
0 commit comments