@ni/nimble-components 32.8.1 → 32.8.2

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.
@@ -20371,12 +20371,11 @@ so this becomes the fallback color for the slot */ ''}
20371
20371
  `;
20372
20372
 
20373
20373
  const styles$L = css `
20374
- ${display('inline-flex')}
20374
+ ${display('inline-grid')}
20375
20375
  ${styles$M}
20376
20376
 
20377
20377
  :host {
20378
20378
  font: ${bodyFont};
20379
- align-items: center;
20380
20379
  cursor: pointer;
20381
20380
  outline: none;
20382
20381
  ${userSelectNone}
@@ -20387,8 +20386,14 @@ so this becomes the fallback color for the slot */ ''}
20387
20386
  cursor: default;
20388
20387
  }
20389
20388
 
20390
- .container {
20389
+ .outer-container {
20390
+ height: 100%;
20391
+ display: flex;
20392
+ align-items: center;
20391
20393
  position: relative;
20394
+ }
20395
+
20396
+ .container {
20392
20397
  display: grid;
20393
20398
  grid-template-columns: auto 1fr auto;
20394
20399
  grid-template-rows: ${bodyFontLineHeight} auto;
@@ -20513,27 +20518,29 @@ so this becomes the fallback color for the slot */ ''}
20513
20518
  @click="${(x, c) => x.clickHandler(c.event)}"
20514
20519
  class="${x => (x.readOnly ? 'readonly' : '')} ${x => (x.checked ? 'checked' : '')} ${x => (x.indeterminate ? 'indeterminate' : '')}"
20515
20520
  >
20516
- <div part="container" class="container">
20517
- <div part="control" class="control">
20518
- <slot name="checked-indicator">
20519
- ${definition.checkedIndicator || ''}
20520
- </slot>
20521
- <slot name="indeterminate-indicator">
20522
- ${definition.indeterminateIndicator || ''}
20523
- </slot>
20524
- </div>
20525
- <label
20526
- part="label"
20527
- class="${x => (x.defaultSlottedNodes?.length
20521
+ <div class="outer-container">
20522
+ <div part="container" class="container">
20523
+ <div part="control" class="control">
20524
+ <slot name="checked-indicator">
20525
+ ${definition.checkedIndicator || ''}
20526
+ </slot>
20527
+ <slot name="indeterminate-indicator">
20528
+ ${definition.indeterminateIndicator || ''}
20529
+ </slot>
20530
+ </div>
20531
+ <label
20532
+ part="label"
20533
+ class="${x => (x.defaultSlottedNodes?.length
20528
20534
  ? 'label'
20529
20535
  : 'label label__hidden')}"
20530
- >
20531
- <slot ${slotted('defaultSlottedNodes')}></slot>
20532
- </label>
20533
- <${iconExclamationMarkTag}
20534
- severity="error"
20535
- class="error-icon"
20536
- ></${iconExclamationMarkTag}>
20536
+ >
20537
+ <slot ${slotted('defaultSlottedNodes')}></slot>
20538
+ </label>
20539
+ <${iconExclamationMarkTag}
20540
+ severity="error"
20541
+ class="error-icon"
20542
+ ></${iconExclamationMarkTag}>
20543
+ </div>
20537
20544
  ${errorTextTemplate}
20538
20545
  </div>
20539
20546
  </template>