@patternfly/react-core 4.236.2 → 4.236.3

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/esm/components/Alert/Alert.d.ts +2 -0
  3. package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
  4. package/dist/esm/components/Alert/Alert.js +2 -2
  5. package/dist/esm/components/Alert/Alert.js.map +1 -1
  6. package/dist/esm/components/AlertGroup/AlertGroupInline.d.ts.map +1 -1
  7. package/dist/esm/components/AlertGroup/AlertGroupInline.js +4 -1
  8. package/dist/esm/components/AlertGroup/AlertGroupInline.js.map +1 -1
  9. package/dist/esm/components/Tabs/OverflowTab.d.ts.map +1 -1
  10. package/dist/esm/components/Tabs/OverflowTab.js +1 -1
  11. package/dist/esm/components/Tabs/OverflowTab.js.map +1 -1
  12. package/dist/esm/components/Tabs/TabButton.d.ts.map +1 -1
  13. package/dist/esm/components/Tabs/TabButton.js +1 -1
  14. package/dist/esm/components/Tabs/TabButton.js.map +1 -1
  15. package/dist/esm/components/Tabs/Tabs.d.ts.map +1 -1
  16. package/dist/esm/components/Tabs/Tabs.js +2 -2
  17. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  18. package/dist/js/components/Alert/Alert.d.ts +2 -0
  19. package/dist/js/components/Alert/Alert.d.ts.map +1 -1
  20. package/dist/js/components/Alert/Alert.js +2 -2
  21. package/dist/js/components/Alert/Alert.js.map +1 -1
  22. package/dist/js/components/AlertGroup/AlertGroupInline.d.ts.map +1 -1
  23. package/dist/js/components/AlertGroup/AlertGroupInline.js +4 -1
  24. package/dist/js/components/AlertGroup/AlertGroupInline.js.map +1 -1
  25. package/dist/js/components/Tabs/OverflowTab.d.ts.map +1 -1
  26. package/dist/js/components/Tabs/OverflowTab.js +1 -1
  27. package/dist/js/components/Tabs/OverflowTab.js.map +1 -1
  28. package/dist/js/components/Tabs/TabButton.d.ts.map +1 -1
  29. package/dist/js/components/Tabs/TabButton.js +1 -1
  30. package/dist/js/components/Tabs/TabButton.js.map +1 -1
  31. package/dist/js/components/Tabs/Tabs.d.ts.map +1 -1
  32. package/dist/js/components/Tabs/Tabs.js +2 -2
  33. package/dist/js/components/Tabs/Tabs.js.map +1 -1
  34. package/dist/umd/react-core.min.css +69 -69
  35. package/dist/umd/react-core.min.js +2 -2
  36. package/package.json +5 -5
  37. package/src/components/Alert/Alert.tsx +4 -0
  38. package/src/components/AlertGroup/AlertGroupInline.tsx +3 -2
  39. package/src/components/Tabs/OverflowTab.tsx +1 -0
  40. package/src/components/Tabs/TabButton.tsx +6 -1
  41. package/src/components/Tabs/Tabs.tsx +2 -0
  42. package/src/components/Tabs/__tests__/__snapshots__/OverflowTab.test.tsx.snap +1 -0
  43. package/src/components/Tabs/__tests__/__snapshots__/Tab.test.tsx.snap +1 -0
  44. package/src/components/Tabs/__tests__/__snapshots__/TabButton.test.tsx.snap +1 -0
  45. package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +67 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.236.2",
3
+ "version": "4.236.3",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -44,9 +44,9 @@
44
44
  "generate": "node scripts/copyStyles.js"
45
45
  },
46
46
  "dependencies": {
47
- "@patternfly/react-icons": "^4.87.2",
48
- "@patternfly/react-styles": "^4.86.2",
49
- "@patternfly/react-tokens": "^4.88.2",
47
+ "@patternfly/react-icons": "^4.87.3",
48
+ "@patternfly/react-styles": "^4.86.3",
49
+ "@patternfly/react-tokens": "^4.88.3",
50
50
  "focus-trap": "6.9.2",
51
51
  "react-dropzone": "9.0.0",
52
52
  "tippy.js": "5.1.2",
@@ -70,5 +70,5 @@
70
70
  "react": "^16.8.0 || ^17.0.0",
71
71
  "react-dom": "^16.8.0 || ^17.0.0"
72
72
  },
73
- "gitHead": "de201ab6c9fa8d24e516025f984b0b86666f484d"
73
+ "gitHead": "07d9fc8ea68e953640e5d48c8693ec6865851bf1"
74
74
  }
@@ -73,6 +73,8 @@ export interface AlertProps extends Omit<React.HTMLProps<HTMLDivElement>, 'actio
73
73
  isExpandable?: boolean;
74
74
  /** Adds accessible text to the alert Toggle */
75
75
  toggleAriaLabel?: string;
76
+ /** Uniquely identifies the alert */
77
+ id?: string;
76
78
  }
77
79
 
78
80
  export const Alert: React.FunctionComponent<AlertProps> = ({
@@ -100,6 +102,7 @@ export const Alert: React.FunctionComponent<AlertProps> = ({
100
102
  toggleAriaLabel = `${capitalize(variant)} alert details`,
101
103
  onMouseEnter = () => {},
102
104
  onMouseLeave = () => {},
105
+ id,
103
106
  ...props
104
107
  }: AlertProps) => {
105
108
  const ouiaProps = useOUIAProps(Alert.displayName, ouiaId, ouiaSafe, variant);
@@ -211,6 +214,7 @@ export const Alert: React.FunctionComponent<AlertProps> = ({
211
214
  })}
212
215
  onMouseEnter={myOnMouseEnter}
213
216
  onMouseLeave={myOnMouseLeave}
217
+ id={id}
214
218
  {...props}
215
219
  >
216
220
  {isExpandable && (
@@ -2,6 +2,7 @@ import * as React from 'react';
2
2
  import { css } from '@patternfly/react-styles';
3
3
  import styles from '@patternfly/react-styles/css/components/AlertGroup/alert-group';
4
4
  import { AlertGroupProps } from './AlertGroup';
5
+ import { AlertProps } from '../Alert';
5
6
 
6
7
  export const AlertGroupInline: React.FunctionComponent<AlertGroupProps> = ({
7
8
  className,
@@ -18,8 +19,8 @@ export const AlertGroupInline: React.FunctionComponent<AlertGroupProps> = ({
18
19
  className={css(styles.alertGroup, className, isToast ? styles.modifiers.toast : '')}
19
20
  {...rest}
20
21
  >
21
- {React.Children.toArray(children).map((Alert: React.ReactNode, index: number) => (
22
- <li key={index}>{Alert}</li>
22
+ {React.Children.toArray(children).map((alert, index) => (
23
+ <li key={(alert as React.ReactElement<AlertProps>).props?.id || index}>{alert}</li>
23
24
  ))}
24
25
  {overflowMessage && (
25
26
  <li>
@@ -88,6 +88,7 @@ export const OverflowTab: React.FunctionComponent<OverflowTabProps> = ({
88
88
  {...props}
89
89
  >
90
90
  <button
91
+ type="button"
91
92
  className={css(styles.tabsLink, isExpanded && styles.modifiers.expanded)}
92
93
  onClick={() => toggleMenu()}
93
94
  aria-label={toggleAriaLabel}
@@ -26,7 +26,12 @@ export const TabButton: React.FunctionComponent<TabButtonProps> = ({
26
26
  const Component = (props.href ? 'a' : 'button') as any;
27
27
 
28
28
  return (
29
- <Component ref={parentInnerRef} {...getOUIAProps(TabButton.displayName, ouiaId, ouiaSafe)} {...props}>
29
+ <Component
30
+ {...(!props.href && { type: 'button' })}
31
+ ref={parentInnerRef}
32
+ {...getOUIAProps(TabButton.displayName, ouiaId, ouiaSafe)}
33
+ {...props}
34
+ >
30
35
  {children}
31
36
  </Component>
32
37
  );
@@ -463,6 +463,7 @@ export class Tabs extends React.Component<TabsProps, TabsState> {
463
463
  )}
464
464
  {!isOverflowHorizontal && (
465
465
  <button
466
+ type="button"
466
467
  className={css(styles.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary)}
467
468
  aria-label={leftScrollAriaLabel}
468
469
  onClick={this.scrollLeft}
@@ -478,6 +479,7 @@ export class Tabs extends React.Component<TabsProps, TabsState> {
478
479
  </ul>
479
480
  {!isOverflowHorizontal && (
480
481
  <button
482
+ type="button"
481
483
  className={css(styles.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary)}
482
484
  aria-label={rightScrollAriaLabel}
483
485
  onClick={this.scrollRight}
@@ -17,6 +17,7 @@ exports[`Matches snapshot when expanded 1`] = `
17
17
  aria-haspopup="menu"
18
18
  class="pf-c-tabs__link pf-m-expanded"
19
19
  role="tab"
20
+ type="button"
20
21
  >
21
22
  <span
22
23
  class="pf-c-tabs__item-text"
@@ -14,6 +14,7 @@ exports[`should not render anything 1`] = `
14
14
  data-ouia-safe="true"
15
15
  id="pf-tab-0-"
16
16
  role="tab"
17
+ type="button"
17
18
  >
18
19
  <span
19
20
  class="pf-c-tabs__item-text"
@@ -5,6 +5,7 @@ exports[`should render tab button 1`] = `
5
5
  <button
6
6
  data-ouia-component-type="PF4/TabButton"
7
7
  data-ouia-safe="true"
8
+ type="button"
8
9
  >
9
10
  Tab button
10
11
  </button>
@@ -15,6 +15,7 @@ exports[`should render accessible tabs 1`] = `
15
15
  aria-label="Scroll left"
16
16
  class="pf-c-tabs__scroll-button"
17
17
  disabled=""
18
+ type="button"
18
19
  >
19
20
  <svg
20
21
  aria-hidden="true"
@@ -103,6 +104,7 @@ exports[`should render accessible tabs 1`] = `
103
104
  aria-label="Scroll right"
104
105
  class="pf-c-tabs__scroll-button"
105
106
  disabled=""
107
+ type="button"
106
108
  >
107
109
  <svg
108
110
  aria-hidden="true"
@@ -171,6 +173,7 @@ exports[`should render box tabs 1`] = `
171
173
  aria-label="Scroll left"
172
174
  class="pf-c-tabs__scroll-button"
173
175
  disabled=""
176
+ type="button"
174
177
  >
175
178
  <svg
176
179
  aria-hidden="true"
@@ -202,6 +205,7 @@ exports[`should render box tabs 1`] = `
202
205
  data-ouia-safe="true"
203
206
  id="pf-tab-0-tab1"
204
207
  role="tab"
208
+ type="button"
205
209
  >
206
210
  <span
207
211
  class="pf-c-tabs__item-text"
@@ -222,6 +226,7 @@ exports[`should render box tabs 1`] = `
222
226
  data-ouia-safe="true"
223
227
  id="pf-tab-1-tab2"
224
228
  role="tab"
229
+ type="button"
225
230
  >
226
231
  <span
227
232
  class="pf-c-tabs__item-text"
@@ -242,6 +247,7 @@ exports[`should render box tabs 1`] = `
242
247
  data-ouia-safe="true"
243
248
  id="pf-tab-2-tab3"
244
249
  role="tab"
250
+ type="button"
245
251
  >
246
252
  <span
247
253
  class="pf-c-tabs__item-text"
@@ -262,6 +268,7 @@ exports[`should render box tabs 1`] = `
262
268
  data-ouia-safe="true"
263
269
  id="pf-tab-3-tab4"
264
270
  role="tab"
271
+ type="button"
265
272
  >
266
273
  <span
267
274
  class="pf-c-tabs__item-icon"
@@ -285,6 +292,7 @@ exports[`should render box tabs 1`] = `
285
292
  aria-label="Scroll right"
286
293
  class="pf-c-tabs__scroll-button"
287
294
  disabled=""
295
+ type="button"
288
296
  >
289
297
  <svg
290
298
  aria-hidden="true"
@@ -365,6 +373,7 @@ exports[`should render box tabs of light variant 1`] = `
365
373
  aria-label="Scroll left"
366
374
  class="pf-c-tabs__scroll-button"
367
375
  disabled=""
376
+ type="button"
368
377
  >
369
378
  <svg
370
379
  aria-hidden="true"
@@ -396,6 +405,7 @@ exports[`should render box tabs of light variant 1`] = `
396
405
  data-ouia-safe="true"
397
406
  id="pf-tab-0-tab1"
398
407
  role="tab"
408
+ type="button"
399
409
  >
400
410
  <span
401
411
  class="pf-c-tabs__item-text"
@@ -416,6 +426,7 @@ exports[`should render box tabs of light variant 1`] = `
416
426
  data-ouia-safe="true"
417
427
  id="pf-tab-1-tab2"
418
428
  role="tab"
429
+ type="button"
419
430
  >
420
431
  <span
421
432
  class="pf-c-tabs__item-text"
@@ -436,6 +447,7 @@ exports[`should render box tabs of light variant 1`] = `
436
447
  data-ouia-safe="true"
437
448
  id="pf-tab-2-tab3"
438
449
  role="tab"
450
+ type="button"
439
451
  >
440
452
  <span
441
453
  class="pf-c-tabs__item-text"
@@ -450,6 +462,7 @@ exports[`should render box tabs of light variant 1`] = `
450
462
  aria-label="Scroll right"
451
463
  class="pf-c-tabs__scroll-button"
452
464
  disabled=""
465
+ type="button"
453
466
  >
454
467
  <svg
455
468
  aria-hidden="true"
@@ -561,6 +574,7 @@ exports[`should render expandable vertical tabs 1`] = `
561
574
  aria-label="Scroll left"
562
575
  class="pf-c-tabs__scroll-button"
563
576
  disabled=""
577
+ type="button"
564
578
  >
565
579
  <svg
566
580
  aria-hidden="true"
@@ -592,6 +606,7 @@ exports[`should render expandable vertical tabs 1`] = `
592
606
  data-ouia-safe="true"
593
607
  id="pf-tab-0-tab1"
594
608
  role="tab"
609
+ type="button"
595
610
  >
596
611
  <span
597
612
  class="pf-c-tabs__item-text"
@@ -612,6 +627,7 @@ exports[`should render expandable vertical tabs 1`] = `
612
627
  data-ouia-safe="true"
613
628
  id="pf-tab-1-tab2"
614
629
  role="tab"
630
+ type="button"
615
631
  >
616
632
  <span
617
633
  class="pf-c-tabs__item-text"
@@ -632,6 +648,7 @@ exports[`should render expandable vertical tabs 1`] = `
632
648
  data-ouia-safe="true"
633
649
  id="pf-tab-2-tab3"
634
650
  role="tab"
651
+ type="button"
635
652
  >
636
653
  <span
637
654
  class="pf-c-tabs__item-text"
@@ -652,6 +669,7 @@ exports[`should render expandable vertical tabs 1`] = `
652
669
  data-ouia-safe="true"
653
670
  id="pf-tab-3-tab4"
654
671
  role="tab"
672
+ type="button"
655
673
  >
656
674
  <span
657
675
  class="pf-c-tabs__item-icon"
@@ -675,6 +693,7 @@ exports[`should render expandable vertical tabs 1`] = `
675
693
  aria-label="Scroll right"
676
694
  class="pf-c-tabs__scroll-button"
677
695
  disabled=""
696
+ type="button"
678
697
  >
679
698
  <svg
680
699
  aria-hidden="true"
@@ -755,6 +774,7 @@ exports[`should render filled tabs 1`] = `
755
774
  aria-label="Scroll left"
756
775
  class="pf-c-tabs__scroll-button"
757
776
  disabled=""
777
+ type="button"
758
778
  >
759
779
  <svg
760
780
  aria-hidden="true"
@@ -786,6 +806,7 @@ exports[`should render filled tabs 1`] = `
786
806
  data-ouia-safe="true"
787
807
  id="pf-tab-0-tab1"
788
808
  role="tab"
809
+ type="button"
789
810
  >
790
811
  <span
791
812
  class="pf-c-tabs__item-text"
@@ -806,6 +827,7 @@ exports[`should render filled tabs 1`] = `
806
827
  data-ouia-safe="true"
807
828
  id="pf-tab-1-tab2"
808
829
  role="tab"
830
+ type="button"
809
831
  >
810
832
  <span
811
833
  class="pf-c-tabs__item-text"
@@ -826,6 +848,7 @@ exports[`should render filled tabs 1`] = `
826
848
  data-ouia-safe="true"
827
849
  id="pf-tab-2-tab3"
828
850
  role="tab"
851
+ type="button"
829
852
  >
830
853
  <span
831
854
  class="pf-c-tabs__item-text"
@@ -840,6 +863,7 @@ exports[`should render filled tabs 1`] = `
840
863
  aria-label="Scroll right"
841
864
  class="pf-c-tabs__scroll-button"
842
865
  disabled=""
866
+ type="button"
843
867
  >
844
868
  <svg
845
869
  aria-hidden="true"
@@ -908,6 +932,7 @@ exports[`should render secondary tabs 1`] = `
908
932
  aria-label="Scroll left"
909
933
  class="pf-c-tabs__scroll-button"
910
934
  disabled=""
935
+ type="button"
911
936
  >
912
937
  <svg
913
938
  aria-hidden="true"
@@ -939,6 +964,7 @@ exports[`should render secondary tabs 1`] = `
939
964
  data-ouia-safe="true"
940
965
  id="pf-tab-0-primarieTabs"
941
966
  role="tab"
967
+ type="button"
942
968
  >
943
969
  <span
944
970
  class="pf-c-tabs__item-text"
@@ -959,6 +985,7 @@ exports[`should render secondary tabs 1`] = `
959
985
  data-ouia-safe="true"
960
986
  id="pf-tab-1-tab2"
961
987
  role="tab"
988
+ type="button"
962
989
  >
963
990
  <span
964
991
  class="pf-c-tabs__item-text"
@@ -979,6 +1006,7 @@ exports[`should render secondary tabs 1`] = `
979
1006
  data-ouia-safe="true"
980
1007
  id="pf-tab-2-tab3"
981
1008
  role="tab"
1009
+ type="button"
982
1010
  >
983
1011
  <span
984
1012
  class="pf-c-tabs__item-text"
@@ -993,6 +1021,7 @@ exports[`should render secondary tabs 1`] = `
993
1021
  aria-label="Scroll right"
994
1022
  class="pf-c-tabs__scroll-button"
995
1023
  disabled=""
1024
+ type="button"
996
1025
  >
997
1026
  <svg
998
1027
  aria-hidden="true"
@@ -1030,6 +1059,7 @@ exports[`should render secondary tabs 1`] = `
1030
1059
  aria-label="Scroll left"
1031
1060
  class="pf-c-tabs__scroll-button pf-m-secondary"
1032
1061
  disabled=""
1062
+ type="button"
1033
1063
  >
1034
1064
  <svg
1035
1065
  aria-hidden="true"
@@ -1061,6 +1091,7 @@ exports[`should render secondary tabs 1`] = `
1061
1091
  data-ouia-safe="true"
1062
1092
  id="pf-tab-10-secondary tab1"
1063
1093
  role="tab"
1094
+ type="button"
1064
1095
  >
1065
1096
  <span
1066
1097
  class="pf-c-tabs__item-text"
@@ -1081,6 +1112,7 @@ exports[`should render secondary tabs 1`] = `
1081
1112
  data-ouia-safe="true"
1082
1113
  id="pf-tab-11-secondary tab2"
1083
1114
  role="tab"
1115
+ type="button"
1084
1116
  >
1085
1117
  <span
1086
1118
  class="pf-c-tabs__item-text"
@@ -1101,6 +1133,7 @@ exports[`should render secondary tabs 1`] = `
1101
1133
  data-ouia-safe="true"
1102
1134
  id="pf-tab-12-secondary tab3"
1103
1135
  role="tab"
1136
+ type="button"
1104
1137
  >
1105
1138
  <span
1106
1139
  class="pf-c-tabs__item-text"
@@ -1115,6 +1148,7 @@ exports[`should render secondary tabs 1`] = `
1115
1148
  aria-label="Scroll right"
1116
1149
  class="pf-c-tabs__scroll-button pf-m-secondary"
1117
1150
  disabled=""
1151
+ type="button"
1118
1152
  >
1119
1153
  <svg
1120
1154
  aria-hidden="true"
@@ -1209,6 +1243,7 @@ exports[`should render simple tabs 1`] = `
1209
1243
  aria-label="Scroll left"
1210
1244
  class="pf-c-tabs__scroll-button"
1211
1245
  disabled=""
1246
+ type="button"
1212
1247
  >
1213
1248
  <svg
1214
1249
  aria-hidden="true"
@@ -1240,6 +1275,7 @@ exports[`should render simple tabs 1`] = `
1240
1275
  data-ouia-safe="true"
1241
1276
  id="pf-tab-0-tab1"
1242
1277
  role="tab"
1278
+ type="button"
1243
1279
  >
1244
1280
  <span
1245
1281
  class="pf-c-tabs__item-text"
@@ -1260,6 +1296,7 @@ exports[`should render simple tabs 1`] = `
1260
1296
  data-ouia-safe="true"
1261
1297
  id="pf-tab-1-tab2"
1262
1298
  role="tab"
1299
+ type="button"
1263
1300
  >
1264
1301
  <span
1265
1302
  class="pf-c-tabs__item-text"
@@ -1280,6 +1317,7 @@ exports[`should render simple tabs 1`] = `
1280
1317
  data-ouia-safe="true"
1281
1318
  id="pf-tab-2-tab3"
1282
1319
  role="tab"
1320
+ type="button"
1283
1321
  >
1284
1322
  <span
1285
1323
  class="pf-c-tabs__item-text"
@@ -1300,6 +1338,7 @@ exports[`should render simple tabs 1`] = `
1300
1338
  data-ouia-safe="true"
1301
1339
  id="pf-tab-3-tab4"
1302
1340
  role="tab"
1341
+ type="button"
1303
1342
  >
1304
1343
  <span
1305
1344
  class="pf-c-tabs__item-icon"
@@ -1323,6 +1362,7 @@ exports[`should render simple tabs 1`] = `
1323
1362
  aria-label="Scroll right"
1324
1363
  class="pf-c-tabs__scroll-button"
1325
1364
  disabled=""
1365
+ type="button"
1326
1366
  >
1327
1367
  <svg
1328
1368
  aria-hidden="true"
@@ -1403,6 +1443,7 @@ exports[`should render tabs with eventKey Strings 1`] = `
1403
1443
  aria-label="Scroll left"
1404
1444
  class="pf-c-tabs__scroll-button"
1405
1445
  disabled=""
1446
+ type="button"
1406
1447
  >
1407
1448
  <svg
1408
1449
  aria-hidden="true"
@@ -1434,6 +1475,7 @@ exports[`should render tabs with eventKey Strings 1`] = `
1434
1475
  data-ouia-safe="true"
1435
1476
  id="pf-tab-one-tab1"
1436
1477
  role="tab"
1478
+ type="button"
1437
1479
  >
1438
1480
  <span
1439
1481
  class="pf-c-tabs__item-text"
@@ -1454,6 +1496,7 @@ exports[`should render tabs with eventKey Strings 1`] = `
1454
1496
  data-ouia-safe="true"
1455
1497
  id="pf-tab-two-tab2"
1456
1498
  role="tab"
1499
+ type="button"
1457
1500
  >
1458
1501
  <span
1459
1502
  class="pf-c-tabs__item-text"
@@ -1474,6 +1517,7 @@ exports[`should render tabs with eventKey Strings 1`] = `
1474
1517
  data-ouia-safe="true"
1475
1518
  id="pf-tab-three-tab3"
1476
1519
  role="tab"
1520
+ type="button"
1477
1521
  >
1478
1522
  <span
1479
1523
  class="pf-c-tabs__item-text"
@@ -1488,6 +1532,7 @@ exports[`should render tabs with eventKey Strings 1`] = `
1488
1532
  aria-label="Scroll right"
1489
1533
  class="pf-c-tabs__scroll-button"
1490
1534
  disabled=""
1535
+ type="button"
1491
1536
  >
1492
1537
  <svg
1493
1538
  aria-hidden="true"
@@ -1557,6 +1602,7 @@ exports[`should render tabs with no bottom border 1`] = `
1557
1602
  aria-label="Scroll left"
1558
1603
  class="pf-c-tabs__scroll-button"
1559
1604
  disabled=""
1605
+ type="button"
1560
1606
  >
1561
1607
  <svg
1562
1608
  aria-hidden="true"
@@ -1588,6 +1634,7 @@ exports[`should render tabs with no bottom border 1`] = `
1588
1634
  data-ouia-safe="true"
1589
1635
  id="pf-tab-0-tab1"
1590
1636
  role="tab"
1637
+ type="button"
1591
1638
  >
1592
1639
  <span
1593
1640
  class="pf-c-tabs__item-text"
@@ -1608,6 +1655,7 @@ exports[`should render tabs with no bottom border 1`] = `
1608
1655
  data-ouia-safe="true"
1609
1656
  id="pf-tab-1-tab2"
1610
1657
  role="tab"
1658
+ type="button"
1611
1659
  >
1612
1660
  <span
1613
1661
  class="pf-c-tabs__item-text"
@@ -1628,6 +1676,7 @@ exports[`should render tabs with no bottom border 1`] = `
1628
1676
  data-ouia-safe="true"
1629
1677
  id="pf-tab-2-tab3"
1630
1678
  role="tab"
1679
+ type="button"
1631
1680
  >
1632
1681
  <span
1633
1682
  class="pf-c-tabs__item-text"
@@ -1642,6 +1691,7 @@ exports[`should render tabs with no bottom border 1`] = `
1642
1691
  aria-label="Scroll right"
1643
1692
  class="pf-c-tabs__scroll-button"
1644
1693
  disabled=""
1694
+ type="button"
1645
1695
  >
1646
1696
  <svg
1647
1697
  aria-hidden="true"
@@ -1710,6 +1760,7 @@ exports[`should render tabs with separate content 1`] = `
1710
1760
  aria-label="Scroll left"
1711
1761
  class="pf-c-tabs__scroll-button"
1712
1762
  disabled=""
1763
+ type="button"
1713
1764
  >
1714
1765
  <svg
1715
1766
  aria-hidden="true"
@@ -1741,6 +1792,7 @@ exports[`should render tabs with separate content 1`] = `
1741
1792
  data-ouia-safe="true"
1742
1793
  id="pf-tab-0-separateTabs"
1743
1794
  role="tab"
1795
+ type="button"
1744
1796
  >
1745
1797
  <span
1746
1798
  class="pf-c-tabs__item-text"
@@ -1761,6 +1813,7 @@ exports[`should render tabs with separate content 1`] = `
1761
1813
  data-ouia-safe="true"
1762
1814
  id="pf-tab-1-separateTabs"
1763
1815
  role="tab"
1816
+ type="button"
1764
1817
  >
1765
1818
  <span
1766
1819
  class="pf-c-tabs__item-text"
@@ -1781,6 +1834,7 @@ exports[`should render tabs with separate content 1`] = `
1781
1834
  data-ouia-safe="true"
1782
1835
  id="pf-tab-2-separateTabs"
1783
1836
  role="tab"
1837
+ type="button"
1784
1838
  >
1785
1839
  <span
1786
1840
  class="pf-c-tabs__item-text"
@@ -1795,6 +1849,7 @@ exports[`should render tabs with separate content 1`] = `
1795
1849
  aria-label="Scroll right"
1796
1850
  class="pf-c-tabs__scroll-button"
1797
1851
  disabled=""
1852
+ type="button"
1798
1853
  >
1799
1854
  <svg
1800
1855
  aria-hidden="true"
@@ -1872,6 +1927,7 @@ exports[`should render uncontrolled tabs 1`] = `
1872
1927
  aria-label="Scroll left"
1873
1928
  class="pf-c-tabs__scroll-button"
1874
1929
  disabled=""
1930
+ type="button"
1875
1931
  >
1876
1932
  <svg
1877
1933
  aria-hidden="true"
@@ -1903,6 +1959,7 @@ exports[`should render uncontrolled tabs 1`] = `
1903
1959
  data-ouia-safe="true"
1904
1960
  id="pf-tab-0-tab1"
1905
1961
  role="tab"
1962
+ type="button"
1906
1963
  >
1907
1964
  <span
1908
1965
  class="pf-c-tabs__item-text"
@@ -1923,6 +1980,7 @@ exports[`should render uncontrolled tabs 1`] = `
1923
1980
  data-ouia-safe="true"
1924
1981
  id="pf-tab-1-tab2"
1925
1982
  role="tab"
1983
+ type="button"
1926
1984
  >
1927
1985
  <span
1928
1986
  class="pf-c-tabs__item-text"
@@ -1943,6 +2001,7 @@ exports[`should render uncontrolled tabs 1`] = `
1943
2001
  data-ouia-safe="true"
1944
2002
  id="pf-tab-2-tab3"
1945
2003
  role="tab"
2004
+ type="button"
1946
2005
  >
1947
2006
  <span
1948
2007
  class="pf-c-tabs__item-text"
@@ -1963,6 +2022,7 @@ exports[`should render uncontrolled tabs 1`] = `
1963
2022
  data-ouia-safe="true"
1964
2023
  id="pf-tab-3-tab4"
1965
2024
  role="tab"
2025
+ type="button"
1966
2026
  >
1967
2027
  <span
1968
2028
  class="pf-c-tabs__item-icon"
@@ -1986,6 +2046,7 @@ exports[`should render uncontrolled tabs 1`] = `
1986
2046
  aria-label="Scroll right"
1987
2047
  class="pf-c-tabs__scroll-button"
1988
2048
  disabled=""
2049
+ type="button"
1989
2050
  >
1990
2051
  <svg
1991
2052
  aria-hidden="true"
@@ -2066,6 +2127,7 @@ exports[`should render vertical tabs 1`] = `
2066
2127
  aria-label="Scroll left"
2067
2128
  class="pf-c-tabs__scroll-button"
2068
2129
  disabled=""
2130
+ type="button"
2069
2131
  >
2070
2132
  <svg
2071
2133
  aria-hidden="true"
@@ -2097,6 +2159,7 @@ exports[`should render vertical tabs 1`] = `
2097
2159
  data-ouia-safe="true"
2098
2160
  id="pf-tab-0-tab1"
2099
2161
  role="tab"
2162
+ type="button"
2100
2163
  >
2101
2164
  <span
2102
2165
  class="pf-c-tabs__item-text"
@@ -2117,6 +2180,7 @@ exports[`should render vertical tabs 1`] = `
2117
2180
  data-ouia-safe="true"
2118
2181
  id="pf-tab-1-tab2"
2119
2182
  role="tab"
2183
+ type="button"
2120
2184
  >
2121
2185
  <span
2122
2186
  class="pf-c-tabs__item-text"
@@ -2137,6 +2201,7 @@ exports[`should render vertical tabs 1`] = `
2137
2201
  data-ouia-safe="true"
2138
2202
  id="pf-tab-2-tab3"
2139
2203
  role="tab"
2204
+ type="button"
2140
2205
  >
2141
2206
  <span
2142
2207
  class="pf-c-tabs__item-text"
@@ -2157,6 +2222,7 @@ exports[`should render vertical tabs 1`] = `
2157
2222
  data-ouia-safe="true"
2158
2223
  id="pf-tab-3-tab4"
2159
2224
  role="tab"
2225
+ type="button"
2160
2226
  >
2161
2227
  <span
2162
2228
  class="pf-c-tabs__item-icon"
@@ -2180,6 +2246,7 @@ exports[`should render vertical tabs 1`] = `
2180
2246
  aria-label="Scroll right"
2181
2247
  class="pf-c-tabs__scroll-button"
2182
2248
  disabled=""
2249
+ type="button"
2183
2250
  >
2184
2251
  <svg
2185
2252
  aria-hidden="true"