@ni/ok-components 1.3.2 → 1.3.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.
@@ -21133,7 +21133,6 @@ so this becomes the fallback color for the slot */ ''}
21133
21133
  styles: styles$1g
21134
21134
  });
21135
21135
  DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCard());
21136
- const cardTag = 'nimble-card';
21137
21136
 
21138
21137
  const styles$1f = css `
21139
21138
  ${display$2('inline-flex')}
@@ -100052,8 +100051,10 @@ focus outline in that case.
100052
100051
  }
100053
100052
 
100054
100053
  .card-shell {
100055
- display: block;
100054
+ display: grid;
100056
100055
  width: 100%;
100056
+ height: 100%;
100057
+ min-height: inherit;
100057
100058
  box-sizing: border-box;
100058
100059
  padding: ${standardPadding};
100059
100060
  border-radius: 8px;
@@ -100071,10 +100072,27 @@ focus outline in that case.
100071
100072
  --ni-private-card-button-border-selected-color: transparent;
100072
100073
  }
100073
100074
 
100075
+ .card-button-shell::part(control) {
100076
+ display: flex;
100077
+ flex-direction: column;
100078
+ align-items: stretch;
100079
+ }
100080
+
100081
+ .card-shell > .card-layout,
100082
+ .card-shell > .card-button-content,
100083
+ .card-button-content > .card-layout {
100084
+ height: 100%;
100085
+ }
100086
+
100087
+ .card-button-content {
100088
+ flex: 1 1 auto;
100089
+ }
100090
+
100074
100091
  .card-layout {
100075
100092
  display: grid;
100076
100093
  grid-template-columns: minmax(0, 1fr);
100077
100094
  align-items: start;
100095
+ min-height: 100%;
100078
100096
  }
100079
100097
 
100080
100098
  .card-layout.has-media {
@@ -100109,10 +100127,11 @@ focus outline in that case.
100109
100127
 
100110
100128
  .main-region {
100111
100129
  min-width: 0;
100112
- display: grid;
100113
- grid-template-columns: minmax(0, 1fr);
100130
+ display: flex;
100131
+ flex-direction: column;
100114
100132
  gap: ${mediumPadding};
100115
100133
  text-align: left;
100134
+ align-self: stretch;
100116
100135
  }
100117
100136
 
100118
100137
  .header-row {
@@ -100173,6 +100192,7 @@ focus outline in that case.
100173
100192
  align-items: center;
100174
100193
  justify-content: space-between;
100175
100194
  gap: ${mediumPadding};
100195
+ margin-top: auto;
100176
100196
  font: ${tooltipCaptionFont};
100177
100197
  color: ${tooltipCaptionFontColor};
100178
100198
  text-transform: uppercase;
@@ -100199,7 +100219,10 @@ focus outline in that case.
100199
100219
  display: block;
100200
100220
  }
100201
100221
 
100202
- ::slotted([slot='badges']),
100222
+ ::slotted([slot='badges']) {
100223
+ max-width: 100%;
100224
+ }
100225
+
100203
100226
  ::slotted([slot='footer-start']),
100204
100227
  ::slotted([slot='footer-end']) {
100205
100228
  display: block;
@@ -100374,12 +100397,9 @@ focus outline in that case.
100374
100397
  </div>
100375
100398
  </${cardButtonTag}>
100376
100399
  `, html `
100377
- <${cardTag}
100378
- class="card-shell card-static-shell"
100379
- part="card-shell"
100380
- >
100400
+ <div class="card-shell card-static-shell" part="card-shell">
100381
100401
  ${cardContentTemplate}
100382
- </${cardTag}>
100402
+ </div>
100383
100403
  `)}
100384
100404
  `;
100385
100405