@ni/nimble-components 20.1.2 → 20.1.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.
@@ -16288,7 +16288,7 @@
16288
16288
 
16289
16289
  /**
16290
16290
  * Do not edit directly
16291
- * Generated on Thu, 03 Aug 2023 22:33:38 GMT
16291
+ * Generated on Fri, 11 Aug 2023 15:03:51 GMT
16292
16292
  */
16293
16293
 
16294
16294
  const Information100DarkUi = "#a46eff";
@@ -17789,18 +17789,10 @@
17789
17789
  background-color: ${fillHoverColor};
17790
17790
  }
17791
17791
 
17792
- :host(:hover[aria-selected='true']) {
17792
+ :host(:hover[aria-current]) {
17793
17793
  background-color: ${fillHoverSelectedColor};
17794
17794
  }
17795
17795
 
17796
- :host(:focus) {
17797
- outline: none;
17798
- }
17799
-
17800
- :host(${focusVisible}) {
17801
- outline: none;
17802
- }
17803
-
17804
17796
  :host(:active) {
17805
17797
  background: none;
17806
17798
  }
@@ -17817,7 +17809,7 @@
17817
17809
  calc(${standardPadding} / 2 - ${borderWidth});
17818
17810
  }
17819
17811
 
17820
- :host::before {
17812
+ a::before {
17821
17813
  content: '';
17822
17814
  position: absolute;
17823
17815
  bottom: calc(
@@ -17832,16 +17824,26 @@
17832
17824
  }
17833
17825
 
17834
17826
  @media (prefers-reduced-motion) {
17835
- :host::before {
17836
- transition-duration: 0.01s;
17827
+ a::before {
17828
+ transition-duration: 0s;
17837
17829
  }
17838
17830
  }
17839
17831
 
17840
- :host(${focusVisible})::before {
17832
+ a${focusVisible}::before {
17841
17833
  width: calc(100% - 2 * var(--ni-private-focus-indicator-inset-width));
17842
17834
  }
17843
17835
 
17844
- :host::after {
17836
+ a {
17837
+ display: inline-flex;
17838
+ text-decoration: none;
17839
+ color: inherit;
17840
+ cursor: inherit;
17841
+ outline: none;
17842
+ align-items: center;
17843
+ justify-content: center;
17844
+ }
17845
+
17846
+ a::after {
17845
17847
  content: '';
17846
17848
  position: absolute;
17847
17849
  bottom: 0px;
@@ -17853,35 +17855,24 @@
17853
17855
  }
17854
17856
 
17855
17857
  @media (prefers-reduced-motion) {
17856
- :host::after {
17857
- transition-duration: 0.01s;
17858
+ a::after {
17859
+ transition-duration: 0s;
17858
17860
  }
17859
17861
  }
17860
17862
 
17861
- :host(${focusVisible})::after {
17863
+ a${focusVisible}::after {
17862
17864
  width: 100%;
17863
17865
  border-bottom-width: var(--ni-private-focus-indicator-width);
17864
17866
  }
17865
17867
 
17866
- :host([aria-selected='true'])::after {
17868
+ :host([aria-current]) a::after {
17867
17869
  width: 100%;
17868
17870
  border-bottom-width: var(--ni-private-active-indicator-width);
17869
17871
  }
17870
17872
 
17871
- :host([aria-selected='true'][disabled])::after {
17873
+ :host([disabled][aria-current]) a::after {
17872
17874
  border-bottom-color: rgba(${borderHoverColor}, 0.3);
17873
17875
  }
17874
- `;
17875
-
17876
- const styles$M = css `
17877
- ${styles$N}
17878
-
17879
- a {
17880
- text-decoration: none;
17881
- color: inherit;
17882
- cursor: inherit;
17883
- outline: none;
17884
- }
17885
17876
 
17886
17877
  [part='start'] {
17887
17878
  display: none;
@@ -17903,7 +17894,6 @@
17903
17894
  rel="${x => x.rel}"
17904
17895
  target="${x => x.target}"
17905
17896
  type="${x => x.type}"
17906
- tabindex="-1"
17907
17897
  >
17908
17898
  ${startSlotTemplate(context, definition)}
17909
17899
  <slot></slot>
@@ -17946,12 +17936,15 @@
17946
17936
  const nimbleAnchorTab = AnchorTab.compose({
17947
17937
  baseName: 'anchor-tab',
17948
17938
  template: template$u,
17949
- styles: styles$M
17939
+ styles: styles$N,
17940
+ shadowOptions: {
17941
+ delegatesFocus: true
17942
+ }
17950
17943
  });
17951
17944
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTab());
17952
17945
  DesignSystem.tagFor(AnchorTab);
17953
17946
 
17954
- const styles$L = css `
17947
+ const styles$M = css `
17955
17948
  ${display('grid')}
17956
17949
 
17957
17950
  :host {
@@ -18010,7 +18003,12 @@
18010
18003
  }
18011
18004
  const isTabStop = this.activeid === tabId && this.isFocusableElement(tab);
18012
18005
  tab.setAttribute('id', tabId);
18013
- tab.setAttribute('aria-selected', isActiveTab ? 'true' : 'false');
18006
+ if (isActiveTab) {
18007
+ tab.setAttribute('aria-current', 'page');
18008
+ }
18009
+ else {
18010
+ tab.removeAttribute('aria-current');
18011
+ }
18014
18012
  tab.removeEventListener('click', this.handleTabClick);
18015
18013
  tab.addEventListener('click', this.handleTabClick);
18016
18014
  tab.removeEventListener('keydown', this.handleTabKeyDown);
@@ -18120,6 +18118,7 @@
18120
18118
  focusedTab.focus();
18121
18119
  this.tabs.forEach((tab) => {
18122
18120
  tab.setAttribute('tabindex', tab === focusedTab ? '0' : '-1');
18121
+ tab.setAttribute('aria-selected', tab === focusedTab ? 'true' : 'false');
18123
18122
  });
18124
18123
  };
18125
18124
  }
@@ -18174,7 +18173,7 @@
18174
18173
  const nimbleAnchorTabs = AnchorTabs.compose({
18175
18174
  baseName: 'anchor-tabs',
18176
18175
  template: template$t,
18177
- styles: styles$L,
18176
+ styles: styles$M,
18178
18177
  shadowOptions: {
18179
18178
  delegatesFocus: false
18180
18179
  }
@@ -18191,7 +18190,7 @@
18191
18190
  -webkit-user-select: none;
18192
18191
  `;
18193
18192
 
18194
- const styles$K = css `
18193
+ const styles$L = css `
18195
18194
  ${display('block')}
18196
18195
 
18197
18196
  :host {
@@ -18430,7 +18429,7 @@
18430
18429
  const nimbleAnchorTreeItem = AnchorTreeItem.compose({
18431
18430
  baseName: 'anchor-tree-item',
18432
18431
  template: template$s,
18433
- styles: styles$K,
18432
+ styles: styles$L,
18434
18433
  shadowOptions: {
18435
18434
  delegatesFocus: true
18436
18435
  }
@@ -18440,7 +18439,7 @@
18440
18439
  .register(nimbleAnchorTreeItem());
18441
18440
  DesignSystem.tagFor(AnchorTreeItem);
18442
18441
 
18443
- const styles$J = css `
18442
+ const styles$K = css `
18444
18443
  :host {
18445
18444
  contain: layout;
18446
18445
  display: block;
@@ -18464,7 +18463,7 @@
18464
18463
  baseName: 'anchored-region',
18465
18464
  baseClass: AnchoredRegion$1,
18466
18465
  template: anchoredRegionTemplate,
18467
- styles: styles$J
18466
+ styles: styles$K
18468
18467
  });
18469
18468
  DesignSystem.getOrCreate()
18470
18469
  .withPrefix('nimble')
@@ -18544,7 +18543,7 @@
18544
18543
  */
18545
18544
  const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
18546
18545
 
18547
- const styles$I = css `
18546
+ const styles$J = css `
18548
18547
  ${display('flex')}
18549
18548
 
18550
18549
  :host {
@@ -18702,7 +18701,7 @@
18702
18701
  }
18703
18702
  `));
18704
18703
 
18705
- const styles$H = css `
18704
+ const styles$I = css `
18706
18705
  ${styles$Q}
18707
18706
  ${buttonAppearanceVariantStyles}
18708
18707
  `;
@@ -18749,7 +18748,7 @@
18749
18748
  baseName: 'button',
18750
18749
  baseClass: Button$1,
18751
18750
  template: buttonTemplate,
18752
- styles: styles$H,
18751
+ styles: styles$I,
18753
18752
  shadowOptions: {
18754
18753
  delegatesFocus: true
18755
18754
  }
@@ -19413,7 +19412,7 @@
19413
19412
  </template
19414
19413
  `;
19415
19414
 
19416
- const styles$G = css `
19415
+ const styles$H = css `
19417
19416
  ${display('inline-flex')}
19418
19417
 
19419
19418
  :host {
@@ -19487,7 +19486,7 @@
19487
19486
  const composedIcon = iconClass.compose({
19488
19487
  baseName,
19489
19488
  template: template$r,
19490
- styles: styles$G,
19489
+ styles: styles$H,
19491
19490
  baseClass: iconClass
19492
19491
  });
19493
19492
  DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
@@ -19693,12 +19692,12 @@
19693
19692
  const nimbleBanner = Banner.compose({
19694
19693
  baseName: 'banner',
19695
19694
  template: template$q,
19696
- styles: styles$I
19695
+ styles: styles$J
19697
19696
  });
19698
19697
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBanner());
19699
19698
  DesignSystem.tagFor(Banner);
19700
19699
 
19701
- const styles$F = css `
19700
+ const styles$G = css `
19702
19701
  ${display('inline-block')}
19703
19702
 
19704
19703
  :host {
@@ -19739,12 +19738,12 @@
19739
19738
  baseName: 'breadcrumb',
19740
19739
  baseClass: Breadcrumb$1,
19741
19740
  template: breadcrumbTemplate,
19742
- styles: styles$F
19741
+ styles: styles$G
19743
19742
  });
19744
19743
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
19745
19744
  DesignSystem.tagFor(Breadcrumb);
19746
19745
 
19747
- const styles$E = css `
19746
+ const styles$F = css `
19748
19747
  ${display('inline-flex')}
19749
19748
 
19750
19749
  :host {
@@ -19818,7 +19817,7 @@
19818
19817
  baseName: 'breadcrumb-item',
19819
19818
  baseClass: BreadcrumbItem$1,
19820
19819
  template: breadcrumbItemTemplate,
19821
- styles: styles$E,
19820
+ styles: styles$F,
19822
19821
  separator: forwardSlash16X16.data
19823
19822
  });
19824
19823
  DesignSystem.getOrCreate()
@@ -19826,7 +19825,7 @@
19826
19825
  .register(nimbleBreadcrumbItem());
19827
19826
  DesignSystem.tagFor(BreadcrumbItem);
19828
19827
 
19829
- const styles$D = css `
19828
+ const styles$E = css `
19830
19829
  ${display('inline-flex')}
19831
19830
 
19832
19831
  :host {
@@ -19985,7 +19984,7 @@
19985
19984
  const nimbleCardButton = CardButton.compose({
19986
19985
  baseName: 'card-button',
19987
19986
  template: buttonTemplate,
19988
- styles: styles$D,
19987
+ styles: styles$E,
19989
19988
  shadowOptions: {
19990
19989
  delegatesFocus: true
19991
19990
  }
@@ -19993,7 +19992,7 @@
19993
19992
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCardButton());
19994
19993
  DesignSystem.tagFor(CardButton);
19995
19994
 
19996
- const styles$C = css `
19995
+ const styles$D = css `
19997
19996
  ${display('inline-flex')}
19998
19997
 
19999
19998
  :host {
@@ -20111,14 +20110,14 @@
20111
20110
  baseName: 'checkbox',
20112
20111
  baseClass: Checkbox$1,
20113
20112
  template: checkboxTemplate,
20114
- styles: styles$C,
20113
+ styles: styles$D,
20115
20114
  checkedIndicator: check16X16.data,
20116
20115
  indeterminateIndicator: minus16X16.data
20117
20116
  });
20118
20117
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
20119
20118
  const checkboxTag = DesignSystem.tagFor(Checkbox);
20120
20119
 
20121
- const styles$B = css `
20120
+ const styles$C = css `
20122
20121
  ${styles$Q}
20123
20122
 
20124
20123
  @layer base {
@@ -20274,7 +20273,7 @@
20274
20273
  const nimbleToggleButton = ToggleButton.compose({
20275
20274
  baseName: 'toggle-button',
20276
20275
  template: template$p,
20277
- styles: styles$B,
20276
+ styles: styles$C,
20278
20277
  shadowOptions: {
20279
20278
  delegatesFocus: true
20280
20279
  }
@@ -20311,7 +20310,7 @@
20311
20310
  block: 'block'
20312
20311
  };
20313
20312
 
20314
- const styles$A = css `
20313
+ const styles$B = css `
20315
20314
  ${display('inline-flex')}
20316
20315
 
20317
20316
  :host {
@@ -20537,7 +20536,7 @@
20537
20536
  }
20538
20537
  `));
20539
20538
 
20540
- const styles$z = css `
20539
+ const styles$A = css `
20541
20540
  .error-icon {
20542
20541
  display: none;
20543
20542
  }
@@ -20571,9 +20570,9 @@
20571
20570
  }
20572
20571
  `;
20573
20572
 
20574
- const styles$y = css `
20573
+ const styles$z = css `
20574
+ ${styles$B}
20575
20575
  ${styles$A}
20576
- ${styles$z}
20577
20576
 
20578
20577
  :host {
20579
20578
  --ni-private-hover-bottom-border-width: 2px;
@@ -20926,7 +20925,7 @@
20926
20925
  baseName: 'combobox',
20927
20926
  baseClass: Combobox$1,
20928
20927
  template: template$o,
20929
- styles: styles$y,
20928
+ styles: styles$z,
20930
20929
  shadowOptions: {
20931
20930
  delegatesFocus: true
20932
20931
  },
@@ -20971,7 +20970,7 @@
20971
20970
  */
20972
20971
  const UserDismissed = Symbol('user dismissed');
20973
20972
 
20974
- const styles$x = css `
20973
+ const styles$y = css `
20975
20974
  ${display('grid')}
20976
20975
 
20977
20976
  dialog {
@@ -21214,13 +21213,13 @@
21214
21213
  const nimbleDialog = Dialog.compose({
21215
21214
  baseName: 'dialog',
21216
21215
  template: template$n,
21217
- styles: styles$x,
21216
+ styles: styles$y,
21218
21217
  baseClass: Dialog
21219
21218
  });
21220
21219
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDialog());
21221
21220
  DesignSystem.tagFor(Dialog);
21222
21221
 
21223
- const styles$w = css `
21222
+ const styles$x = css `
21224
21223
  ${display('block')}
21225
21224
 
21226
21225
  :host {
@@ -21488,7 +21487,7 @@
21488
21487
  const nimbleDrawer = Drawer.compose({
21489
21488
  baseName: 'drawer',
21490
21489
  template: template$m,
21491
- styles: styles$w
21490
+ styles: styles$x
21492
21491
  });
21493
21492
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDrawer());
21494
21493
  DesignSystem.tagFor(Drawer);
@@ -23685,7 +23684,7 @@
23685
23684
  .register(nimbleLabelProviderTable());
23686
23685
  DesignSystem.tagFor(LabelProviderTable);
23687
23686
 
23688
- const styles$v = css `
23687
+ const styles$w = css `
23689
23688
  ${display('flex')}
23690
23689
 
23691
23690
  :host {
@@ -23773,7 +23772,7 @@
23773
23772
  baseName: 'list-option',
23774
23773
  baseClass: ListboxOption,
23775
23774
  template: listboxOptionTemplate,
23776
- styles: styles$v
23775
+ styles: styles$w
23777
23776
  });
23778
23777
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListOption());
23779
23778
  DesignSystem.tagFor(ListOption);
@@ -23806,7 +23805,7 @@
23806
23805
  DesignSystem.getOrCreate().withPrefix('nimble').register(textMapping());
23807
23806
  DesignSystem.tagFor(MappingText);
23808
23807
 
23809
- const styles$u = css `
23808
+ const styles$v = css `
23810
23809
  ${display('grid')}
23811
23810
 
23812
23811
  :host {
@@ -23873,12 +23872,12 @@
23873
23872
  baseName: 'menu',
23874
23873
  baseClass: Menu$1,
23875
23874
  template: menuTemplate,
23876
- styles: styles$u
23875
+ styles: styles$v
23877
23876
  });
23878
23877
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
23879
23878
  DesignSystem.tagFor(Menu);
23880
23879
 
23881
- const styles$t = css `
23880
+ const styles$u = css `
23882
23881
  ${display('inline-block')}
23883
23882
 
23884
23883
  :host {
@@ -24153,7 +24152,7 @@
24153
24152
  const nimbleMenuButton = MenuButton.compose({
24154
24153
  baseName: 'menu-button',
24155
24154
  template: template$k,
24156
- styles: styles$t,
24155
+ styles: styles$u,
24157
24156
  shadowOptions: {
24158
24157
  delegatesFocus: true
24159
24158
  }
@@ -24161,7 +24160,7 @@
24161
24160
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuButton());
24162
24161
  const menuButtonTag = DesignSystem.tagFor(MenuButton);
24163
24162
 
24164
- const styles$s = css `
24163
+ const styles$t = css `
24165
24164
  ${display('grid')}
24166
24165
 
24167
24166
  :host {
@@ -24259,7 +24258,7 @@
24259
24258
  baseName: 'menu-item',
24260
24259
  baseClass: MenuItem$1,
24261
24260
  template: menuItemTemplate,
24262
- styles: styles$s,
24261
+ styles: styles$t,
24263
24262
  expandCollapseGlyph: arrowExpanderRight16X16.data
24264
24263
  });
24265
24264
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
@@ -24274,9 +24273,9 @@
24274
24273
  block: 'block'
24275
24274
  };
24276
24275
 
24277
- const styles$r = css `
24276
+ const styles$s = css `
24278
24277
  ${display('inline-block')}
24279
- ${styles$z}
24278
+ ${styles$A}
24280
24279
 
24281
24280
  :host {
24282
24281
  font: ${bodyFont};
@@ -24490,7 +24489,7 @@
24490
24489
  baseName: 'number-field',
24491
24490
  baseClass: NumberField$1,
24492
24491
  template: numberFieldTemplate,
24493
- styles: styles$r,
24492
+ styles: styles$s,
24494
24493
  shadowOptions: {
24495
24494
  delegatesFocus: true
24496
24495
  },
@@ -24532,7 +24531,7 @@
24532
24531
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
24533
24532
  DesignSystem.tagFor(NumberField);
24534
24533
 
24535
- const styles$q = css `
24534
+ const styles$r = css `
24536
24535
  ${display('inline-flex')}
24537
24536
 
24538
24537
  :host {
@@ -24633,13 +24632,13 @@
24633
24632
  baseName: 'radio',
24634
24633
  baseClass: Radio$1,
24635
24634
  template: radioTemplate,
24636
- styles: styles$q,
24635
+ styles: styles$r,
24637
24636
  checkedIndicator: circleFilled16X16.data
24638
24637
  });
24639
24638
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleRadio());
24640
24639
  DesignSystem.tagFor(Radio);
24641
24640
 
24642
- const styles$p = css `
24641
+ const styles$q = css `
24643
24642
  ${display('inline-block')}
24644
24643
 
24645
24644
  .positioning-region {
@@ -24674,7 +24673,7 @@
24674
24673
  baseName: 'radio-group',
24675
24674
  baseClass: RadioGroup$1,
24676
24675
  template: radioGroupTemplate,
24677
- styles: styles$p,
24676
+ styles: styles$q,
24678
24677
  shadowOptions: {
24679
24678
  delegatesFocus: true
24680
24679
  }
@@ -24686,7 +24685,7 @@
24686
24685
  <template> Rich Text Editor here. </template>
24687
24686
  `;
24688
24687
 
24689
- const styles$o = css `
24688
+ const styles$p = css `
24690
24689
  ${display('flex')}
24691
24690
 
24692
24691
  :host {
@@ -24703,7 +24702,7 @@
24703
24702
  const nimbleRichTextEditor = RichTextEditor.compose({
24704
24703
  baseName: 'rich-text-editor',
24705
24704
  template: template$j,
24706
- styles: styles$o
24705
+ styles: styles$p
24707
24706
  });
24708
24707
  DesignSystem.getOrCreate()
24709
24708
  .withPrefix('nimble')
@@ -40228,7 +40227,7 @@
40228
40227
  <div ${ref('viewer')} class="viewer"></div>
40229
40228
  `;
40230
40229
 
40231
- const styles$n = css `
40230
+ const styles$o = css `
40232
40231
  ${display('flex')}
40233
40232
 
40234
40233
  :host {
@@ -40353,16 +40352,16 @@
40353
40352
  const nimbleRichTextViewer = RichTextViewer.compose({
40354
40353
  baseName: 'rich-text-viewer',
40355
40354
  template: template$i,
40356
- styles: styles$n
40355
+ styles: styles$o
40357
40356
  });
40358
40357
  DesignSystem.getOrCreate()
40359
40358
  .withPrefix('nimble')
40360
40359
  .register(nimbleRichTextViewer());
40361
40360
  DesignSystem.tagFor(RichTextViewer);
40362
40361
 
40363
- const styles$m = css `
40362
+ const styles$n = css `
40363
+ ${styles$B}
40364
40364
  ${styles$A}
40365
- ${styles$z}
40366
40365
 
40367
40366
  ${
40368
40367
  /* We are using flex `order` to define the visual ordering of the selected value,
@@ -40529,7 +40528,7 @@
40529
40528
  baseName: 'select',
40530
40529
  baseClass: Select$1,
40531
40530
  template: template$h,
40532
- styles: styles$m,
40531
+ styles: styles$n,
40533
40532
  indicator: arrowExpanderDown16X16.data,
40534
40533
  end: html `
40535
40534
  <${iconExclamationMarkTag}
@@ -40542,7 +40541,7 @@
40542
40541
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSelect());
40543
40542
  DesignSystem.tagFor(Select);
40544
40543
 
40545
- const styles$l = css `
40544
+ const styles$m = css `
40546
40545
  ${display('inline-flex')}
40547
40546
 
40548
40547
  :host {
@@ -40741,12 +40740,12 @@
40741
40740
  const nimbleSpinner = Spinner.compose({
40742
40741
  baseName: 'spinner',
40743
40742
  template: template$g,
40744
- styles: styles$l
40743
+ styles: styles$m
40745
40744
  });
40746
40745
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSpinner());
40747
40746
  DesignSystem.tagFor(Spinner);
40748
40747
 
40749
- const styles$k = css `
40748
+ const styles$l = css `
40750
40749
  ${display('inline-flex')}
40751
40750
 
40752
40751
  :host {
@@ -40954,11 +40953,113 @@
40954
40953
  baseClass: Switch$1,
40955
40954
  baseName: 'switch',
40956
40955
  template: template$f,
40957
- styles: styles$k
40956
+ styles: styles$l
40958
40957
  });
40959
40958
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSwitch());
40960
40959
  DesignSystem.tagFor(Switch);
40961
40960
 
40961
+ const styles$k = css `
40962
+ ${display('inline-flex')}
40963
+
40964
+ :host {
40965
+ position: relative;
40966
+ box-sizing: border-box;
40967
+ font: ${buttonLabelFont};
40968
+ height: ${controlHeight};
40969
+ color: ${bodyFontColor};
40970
+ align-items: center;
40971
+ justify-content: center;
40972
+ cursor: pointer;
40973
+ --ni-private-active-indicator-width: 2px;
40974
+ --ni-private-focus-indicator-width: 1px;
40975
+ --ni-private-indicator-lines-gap: 1px;
40976
+ --ni-private-focus-indicator-inset-width: 3px;
40977
+ }
40978
+
40979
+ :host(:hover) {
40980
+ background-color: ${fillHoverColor};
40981
+ }
40982
+
40983
+ :host(:hover[aria-selected='true']) {
40984
+ background-color: ${fillHoverSelectedColor};
40985
+ }
40986
+
40987
+ :host(${focusVisible}) {
40988
+ outline: none;
40989
+ }
40990
+
40991
+ :host(:active) {
40992
+ background: none;
40993
+ }
40994
+
40995
+ :host([disabled]) {
40996
+ cursor: default;
40997
+ color: ${bodyDisabledFontColor};
40998
+ background: none;
40999
+ }
41000
+
41001
+ slot:not([name]) {
41002
+ display: block;
41003
+ padding: calc(${standardPadding} / 2) ${standardPadding}
41004
+ calc(${standardPadding} / 2 - ${borderWidth});
41005
+ }
41006
+
41007
+ :host::before {
41008
+ content: '';
41009
+ position: absolute;
41010
+ bottom: calc(
41011
+ var(--ni-private-active-indicator-width) +
41012
+ var(--ni-private-indicator-lines-gap)
41013
+ );
41014
+ width: 0px;
41015
+ height: 0px;
41016
+ border-bottom: ${borderHoverColor}
41017
+ var(--ni-private-focus-indicator-width) solid;
41018
+ transition: width ${smallDelay} ease-in;
41019
+ }
41020
+
41021
+ @media (prefers-reduced-motion) {
41022
+ :host::before {
41023
+ transition-duration: 0s;
41024
+ }
41025
+ }
41026
+
41027
+ :host(${focusVisible})::before {
41028
+ width: calc(100% - 2 * var(--ni-private-focus-indicator-inset-width));
41029
+ }
41030
+
41031
+ :host::after {
41032
+ content: '';
41033
+ position: absolute;
41034
+ bottom: 0px;
41035
+ width: 0px;
41036
+ height: 0px;
41037
+ border-bottom: ${borderHoverColor}
41038
+ var(--ni-private-active-indicator-width) solid;
41039
+ transition: width ${smallDelay} ease-in;
41040
+ }
41041
+
41042
+ @media (prefers-reduced-motion) {
41043
+ :host::after {
41044
+ transition-duration: 0s;
41045
+ }
41046
+ }
41047
+
41048
+ :host(${focusVisible})::after {
41049
+ width: 100%;
41050
+ border-bottom-width: var(--ni-private-focus-indicator-width);
41051
+ }
41052
+
41053
+ :host([aria-selected='true'])::after {
41054
+ width: 100%;
41055
+ border-bottom-width: var(--ni-private-active-indicator-width);
41056
+ }
41057
+
41058
+ :host([aria-selected='true'][disabled])::after {
41059
+ border-bottom-color: rgba(${borderHoverColor}, 0.3);
41060
+ }
41061
+ `;
41062
+
40962
41063
  /**
40963
41064
  * A nimble-styled HTML tab
40964
41065
  */
@@ -40968,7 +41069,7 @@
40968
41069
  baseName: 'tab',
40969
41070
  baseClass: Tab$2,
40970
41071
  template: tabTemplate,
40971
- styles: styles$N
41072
+ styles: styles$k
40972
41073
  });
40973
41074
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTab());
40974
41075
  DesignSystem.tagFor(Tab);
@@ -48938,7 +49039,7 @@
48938
49039
 
48939
49040
  const styles$6 = css `
48940
49041
  ${display('inline-flex')}
48941
- ${styles$z}
49042
+ ${styles$A}
48942
49043
 
48943
49044
  :host {
48944
49045
  font: ${bodyFont};
@@ -49284,7 +49385,7 @@
49284
49385
 
49285
49386
  const styles$5 = css `
49286
49387
  ${display('inline-block')}
49287
- ${styles$z}
49388
+ ${styles$A}
49288
49389
 
49289
49390
  :host {
49290
49391
  font: ${bodyFont};