@ons/design-system 65.2.3 → 65.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkboxes/_checkbox.scss +0 -2
- package/components/navigation/navigation.js +0 -2
- package/components/tabs/_macro.njk +1 -1
- package/components/tabs/_macro.spec.js +4 -20
- package/css/main.css +1 -243
- package/package.json +8 -11
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
|
@@ -94,7 +94,6 @@ $checkbox-padding: 11px;
|
|
|
94
94
|
|
|
95
95
|
&:checked,
|
|
96
96
|
&:focus {
|
|
97
|
-
background-color: initial;
|
|
98
97
|
|
|
99
98
|
& + .ons-checkbox__label::before {
|
|
100
99
|
background: none;
|
|
@@ -123,7 +122,6 @@ $checkbox-padding: 11px;
|
|
|
123
122
|
|
|
124
123
|
&:checked,
|
|
125
124
|
&:focus {
|
|
126
|
-
background-color: initial;
|
|
127
125
|
|
|
128
126
|
& + .ons-checkbox__label::before {
|
|
129
127
|
background: none;
|
|
@@ -76,11 +76,7 @@ describe('macro: tabs', () => {
|
|
|
76
76
|
it('has the provided `title`', () => {
|
|
77
77
|
const $ = cheerio.load(renderComponent('tabs', EXAMPLE_TABS));
|
|
78
78
|
|
|
79
|
-
expect(
|
|
80
|
-
$('.ons-tabs__title')
|
|
81
|
-
.text()
|
|
82
|
-
.trim(),
|
|
83
|
-
).toBe('Example tabs');
|
|
79
|
+
expect($('.ons-tabs__title').text().trim()).toBe('Example tabs');
|
|
84
80
|
});
|
|
85
81
|
|
|
86
82
|
it('has title with provided tag override', () => {
|
|
@@ -113,11 +109,7 @@ describe('macro: tabs', () => {
|
|
|
113
109
|
const $ = cheerio.load(renderComponent('tabs', EXAMPLE_TABS));
|
|
114
110
|
|
|
115
111
|
expect($('.ons-tab:first').html()).toBe('Tab 1<span class="ons-u-vh">for Example</span>');
|
|
116
|
-
expect(
|
|
117
|
-
$('.ons-tab:last')
|
|
118
|
-
.text()
|
|
119
|
-
.trim(),
|
|
120
|
-
).toBe('Tab 2');
|
|
112
|
+
expect($('.ons-tab:last').text().trim()).toBe('Tab 2');
|
|
121
113
|
});
|
|
122
114
|
|
|
123
115
|
it('has Google Analytics integration on tab links', () => {
|
|
@@ -133,16 +125,8 @@ describe('macro: tabs', () => {
|
|
|
133
125
|
it('has expected content in tab panels', () => {
|
|
134
126
|
const $ = cheerio.load(renderComponent('tabs', EXAMPLE_TABS));
|
|
135
127
|
|
|
136
|
-
expect(
|
|
137
|
-
|
|
138
|
-
.html()
|
|
139
|
-
.trim(),
|
|
140
|
-
).toBe('Example content...');
|
|
141
|
-
expect(
|
|
142
|
-
$('.ons-tabs__panel:last')
|
|
143
|
-
.html()
|
|
144
|
-
.trim(),
|
|
145
|
-
).toBe('Some nested <strong>strong element</strong>...');
|
|
128
|
+
expect($('.ons-tabs__panel:first').html().trim()).toBe('Example content...');
|
|
129
|
+
expect($('.ons-tabs__panel:last').html().trim()).toBe('Some nested <strong>strong element</strong>...');
|
|
146
130
|
});
|
|
147
131
|
|
|
148
132
|
it('displays a h2 when showTitle set to true', () => {
|