@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.
@@ -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;
@@ -1,5 +1,3 @@
1
- import { GetViewportDetails } from 'viewport-details';
2
-
3
1
  import onViewportChange from '../../js/utils/viewport-change';
4
2
 
5
3
  const attrExpanded = 'aria-expanded';
@@ -24,6 +24,6 @@
24
24
  {% if tab.showTitle %}<h2 id="{{ tab.title|trim|replace(' ','-')|lower + '-content-title' }}" class="ons-u-vh">{{ tab.title }}</h2>{% endif %}
25
25
  {{ tab.content | safe }}
26
26
  </section>
27
- {% endfor %}
27
+ {% endfor %}
28
28
  </section>
29
29
  {% endmacro %}
@@ -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
- $('.ons-tabs__panel:first')
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', () => {