@carbon/styles 1.90.0-rc.0 → 1.91.0-rc.0

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.
package/css/styles.css CHANGED
@@ -5211,6 +5211,13 @@ li.cds--accordion__item--disabled:last-of-type {
5211
5211
  margin-inline-end: 0.5rem;
5212
5212
  }
5213
5213
 
5214
+ :host([slot=label-text]) .cds--toggletip-label {
5215
+ font-size: var(--cds-label-01-font-size, 0.75rem);
5216
+ font-weight: var(--cds-label-01-font-weight, 400);
5217
+ line-height: var(--cds-label-01-line-height, 1.33333);
5218
+ letter-spacing: var(--cds-label-01-letter-spacing, 0.32px);
5219
+ }
5220
+
5214
5221
  .cds--toggletip-button {
5215
5222
  box-sizing: border-box;
5216
5223
  padding: 0;
@@ -15629,11 +15636,6 @@ th .cds--table-sort__flex {
15629
15636
  /* Needs to be after the previous dialog[open] rule to take effect,
15630
15637
  as the specificity is the same */
15631
15638
  }
15632
- @media (prefers-reduced-motion) {
15633
- .cds--dialog {
15634
- transition: none;
15635
- }
15636
- }
15637
15639
  @media (min-width: 42rem) {
15638
15640
  .cds--dialog {
15639
15641
  max-inline-size: 84%;
@@ -15649,6 +15651,11 @@ th .cds--table-sort__flex {
15649
15651
  max-inline-size: 48%;
15650
15652
  }
15651
15653
  }
15654
+ @media (prefers-reduced-motion) {
15655
+ .cds--dialog {
15656
+ transition: none;
15657
+ }
15658
+ }
15652
15659
  .cds--dialog[open] {
15653
15660
  opacity: 1;
15654
15661
  transform: translateY(0);
@@ -15676,10 +15683,13 @@ th .cds--table-sort__flex {
15676
15683
  padding-inline: 1rem 3rem;
15677
15684
  }
15678
15685
 
15679
- /* Transition the :backdrop when the dialog modal is promoted to the top layer */
15680
15686
  .cds--dialog::backdrop {
15681
15687
  background-color: var(--cds-overlay, rgba(22, 22, 22, 0.5));
15682
15688
  opacity: 0;
15689
+ }
15690
+
15691
+ /* Transition the :backdrop when the dialog modal is promoted to the top layer */
15692
+ .cds--dialog::backdrop {
15683
15693
  /* opening and closing is used in as allow-discrete is not currently supported wide enough
15684
15694
  * https://caniuse.com/mdn-css_properties_display_is_transitionable
15685
15695
  */
@@ -20442,17 +20452,51 @@ optgroup.cds--select-optgroup:disabled,
20442
20452
  inline-size: 100vw;
20443
20453
  inset-block-start: 0;
20444
20454
  inset-inline-start: 0;
20455
+ }
20456
+ .cds--modal.cds--modal--enable-presence {
20457
+ animation: cds--presence-modal__enter 240ms cubic-bezier(0, 0, 0.3, 1) forwards;
20458
+ }
20459
+ @media screen and (prefers-reduced-motion: reduce) {
20460
+ .cds--modal.cds--modal--enable-presence {
20461
+ animation: none;
20462
+ }
20463
+ }
20464
+ .cds--modal.cds--modal--enable-presence[data-exiting] {
20465
+ animation: cds--presence-modal__exit 240ms cubic-bezier(0.4, 0.14, 1, 1) forwards;
20466
+ }
20467
+ @media screen and (prefers-reduced-motion: reduce) {
20468
+ .cds--modal.cds--modal--enable-presence[data-exiting] {
20469
+ animation: none;
20470
+ }
20471
+ }
20472
+ @keyframes cds--presence-modal__enter {
20473
+ from {
20474
+ opacity: 0;
20475
+ }
20476
+ to {
20477
+ opacity: 1;
20478
+ }
20479
+ }
20480
+ @keyframes cds--presence-modal__exit {
20481
+ from {
20482
+ opacity: 1;
20483
+ }
20484
+ to {
20485
+ opacity: 0;
20486
+ }
20487
+ }
20488
+ .cds--modal:not(.cds--modal--enable-presence) {
20445
20489
  opacity: 0;
20446
20490
  transition: opacity 240ms cubic-bezier(0.4, 0.14, 1, 1), visibility 0ms linear 240ms;
20447
20491
  visibility: hidden;
20448
20492
  }
20449
- .cds--modal.is-visible {
20493
+ .cds--modal:not(.cds--modal--enable-presence).is-visible {
20450
20494
  opacity: 1;
20451
20495
  transition: opacity 240ms cubic-bezier(0, 0, 0.3, 1), visibility 0ms linear;
20452
20496
  visibility: inherit;
20453
20497
  }
20454
20498
  @media screen and (prefers-reduced-motion: reduce) {
20455
- .cds--modal.is-visible {
20499
+ .cds--modal:not(.cds--modal--enable-presence).is-visible {
20456
20500
  transition: none;
20457
20501
  }
20458
20502
  }
@@ -20492,10 +20536,47 @@ optgroup.cds--select-optgroup:disabled,
20492
20536
  border-inline-start: 2px solid var(--cds-focus, #0f62fe);
20493
20537
  }
20494
20538
 
20495
- .cds--modal.is-visible .cds--modal-container {
20539
+ .cds--modal--enable-presence[data-exiting] .cds--modal-container {
20540
+ animation: cds--presence-modal-container__exit 240ms cubic-bezier(0.4, 0.14, 1, 1) forwards;
20541
+ }
20542
+ @media screen and (prefers-reduced-motion: reduce) {
20543
+ .cds--modal--enable-presence[data-exiting] .cds--modal-container {
20544
+ animation: none;
20545
+ }
20546
+ }
20547
+ .cds--modal--enable-presence .cds--modal-container {
20548
+ animation: cds--presence-modal-container__enter 240ms cubic-bezier(0, 0, 0.3, 1) forwards;
20549
+ }
20550
+ @media screen and (prefers-reduced-motion: reduce) {
20551
+ .cds--modal--enable-presence .cds--modal-container {
20552
+ animation: none;
20553
+ }
20554
+ }
20555
+ @keyframes cds--presence-modal-container__enter {
20556
+ from {
20557
+ transform: translate3d(0, -24px, 0);
20558
+ }
20559
+ to {
20560
+ transform: translate3d(0, 0, 0);
20561
+ }
20562
+ }
20563
+ @keyframes cds--presence-modal-container__exit {
20564
+ from {
20565
+ transform: translate3d(0, 0, 0);
20566
+ }
20567
+ to {
20568
+ transform: translate3d(0, -24px, 0);
20569
+ }
20570
+ }
20571
+
20572
+ :not(.cds--modal--enable-presence).is-visible .cds--modal-container {
20496
20573
  transform: translate3d(0, 0, 0);
20497
20574
  transition: transform 240ms cubic-bezier(0, 0, 0.3, 1);
20498
20575
  }
20576
+ :not(.cds--modal--enable-presence) .cds--modal-container {
20577
+ transform: translate3d(0, -24px, 0);
20578
+ transition: transform 240ms cubic-bezier(0.4, 0.14, 1, 1);
20579
+ }
20499
20580
 
20500
20581
  .cds--modal-container {
20501
20582
  position: fixed;
@@ -20509,13 +20590,11 @@ optgroup.cds--select-optgroup:disabled,
20509
20590
  max-block-size: 100%;
20510
20591
  outline: 3px solid transparent;
20511
20592
  outline-offset: -3px;
20512
- transform: translate3d(0, -24px, 0);
20513
20593
  transform-origin: top center;
20514
- transition: transform 240ms cubic-bezier(0.4, 0.14, 1, 1);
20515
20594
  }
20516
20595
  @media (min-width: 42rem) {
20517
20596
  .cds--modal-container {
20518
- position: static;
20597
+ position: relative;
20519
20598
  block-size: auto;
20520
20599
  inline-size: 84%;
20521
20600
  max-block-size: 90%;
@@ -25866,7 +25945,7 @@ span.cds--pagination__text.cds--pagination__items-count {
25866
25945
  background-color: transparent;
25867
25946
  }
25868
25947
  .cds--toggle--readonly .cds--toggle__switch::before {
25869
- background-color: var(--cds-text-primary, #161616);
25948
+ background-color: var(--cds-icon-primary, #161616);
25870
25949
  inset-block-start: 0.125rem;
25871
25950
  inset-inline-start: 0.125rem;
25872
25951
  }