@odx/ui 4.7.1 → 4.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 4.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - da36d27: - Font weights of Display (former Headlines) are now adjusted to follow Figma guidelines
8
+ - It is now more clear that maximum font weight we use is the semibold of Pangea (600)
9
+ - Changed headlines, headings, paragraphs (plural) to display, heading, paragraph (singular)
10
+
3
11
  ## 4.7.1
4
12
 
5
13
  ### Patch Changes
package/ag-grid-theme.css CHANGED
@@ -209,7 +209,7 @@
209
209
  }
210
210
  .ag-theme-odx .ag-paging-panel .ag-paging-row-summary-panel-number,
211
211
  .ag-theme-odx .ag-paging-panel .ag-paging-number {
212
- font-weight: var(--odx-typography-font-weight-bold);
212
+ font-weight: var(--odx-typography-font-weight-semibold);
213
213
  }
214
214
  .ag-theme-odx .ag-checkbox-input {
215
215
  background-color: var(--odx-control-background-color);
package/core-theme.css CHANGED
@@ -135,6 +135,7 @@
135
135
  }
136
136
 
137
137
  :root {
138
+ --odx-c-display: var(--blue-700);
138
139
  --odx-c-headline: var(--blue-700);
139
140
  --odx-c-text: var(--blue-700);
140
141
  --odx-c-text-inverse: var(--white);
@@ -215,6 +216,7 @@
215
216
 
216
217
  :root:has([odxTheme=dark]),
217
218
  :root:has(.odx-theme-dark) {
219
+ --odx-c-display: var(--blue-900);
218
220
  --odx-c-headline: var(--blue-900);
219
221
  --odx-c-text: var(--blue-900);
220
222
  --odx-c-text-inverse: var(--black);
@@ -301,12 +303,14 @@
301
303
  --odx-typography-font-family: "PangeaText", "Arial", sans-serif;
302
304
  --odx-typography-base-size: 1.6rem;
303
305
  --odx-typography-base-line-height: 1.5;
304
- --odx-typography-font-weight-normal: normal;
306
+ --odx-typography-font-weight-normal: 400;
305
307
  --odx-typography-font-weight-normal-letter-spacing: 0;
306
308
  --odx-typography-font-weight-medium: 500;
307
309
  --odx-typography-font-weight-medium-letter-spacing: -0.19px;
308
- --odx-typography-font-weight-bold: bold;
309
- --odx-typography-font-weight-bold-letter-spacing: 0;
310
+ --odx-typography-font-weight-semibold: 600;
311
+ --odx-typography-font-weight-semibold-letter-spacing: 0;
312
+ --odx-typography-font-weight-bold: var(--odx-typography-font-weight-semibold);
313
+ --odx-typography-font-weight-bold-letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
310
314
  --odx-typography-positive-font-scaling-factor: 1.125;
311
315
  --odx-typography-negative-font-scaling-factor: 1.2;
312
316
  }
@@ -546,7 +550,7 @@ body,
546
550
  @font-face {
547
551
  font-family: PangeaText;
548
552
  font-style: normal;
549
- font-weight: normal;
553
+ font-weight: 400;
550
554
  src: url(5eabf29514e9649c8c73.woff2) format("woff2");
551
555
  }
552
556
  @font-face {
@@ -558,7 +562,7 @@ body,
558
562
  @font-face {
559
563
  font-family: PangeaText;
560
564
  font-style: normal;
561
- font-weight: bold;
565
+ font-weight: 600;
562
566
  src: url(eb2051d1f9da906e0b3e.woff2) format("woff2");
563
567
  }
564
568
  html {
@@ -576,29 +580,38 @@ html body {
576
580
  font-family: var(--odx-typography-font-family);
577
581
  }
578
582
 
579
- .odx-title, .odx-header__title, .odx-area-header__title, .odx-content h1, .odx-content h2, .odx-content h3, .odx-content h4, .odx-content h5, .odx-content h6, .odx-subtitle, .odx-area-header__subtitle,
583
+ /* Deprecated .odx-title. Use .odx-heading instead. Keeping the old classes for compatibility. */
584
+ .odx-heading, .odx-header__title, .odx-area-header__title, .odx-content h1, .odx-content h2, .odx-content h3, .odx-content h4, .odx-content h5, .odx-content h6,
585
+ .odx-title,
586
+ .odx-subtitle,
580
587
  [class*=odx-subtitle-],
588
+ [class*=odx-heading-],
581
589
  [class*=odx-title-] {
582
- font-weight: var(--odx-typography-font-weight-bold);
583
- letter-spacing: var(--odx-typography-font-weight-bold-letter-spacing);
584
- color: var(--odx-c-headline);
590
+ font-weight: var(--odx-typography-font-weight-semibold);
591
+ letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
592
+ color: var(--odx-c-display);
585
593
  }
586
594
 
587
- .odx-subtitle, .odx-area-header__subtitle,
595
+ /* Deprecated odx-subtitle. Subtitles were removed from figma. Keeping the old classes for compatibility. */
596
+ .odx-subtitle,
588
597
  [class*=odx-subtitle-] {
589
598
  font-weight: var(--odx-typography-font-weight-normal);
590
599
  letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
591
600
  }
592
601
 
593
- .odx-title-1, .odx-content h1,
602
+ .odx-heading-1, .odx-content h1,
603
+ .odx-title-1,
594
604
  .odx-subtitle-1 {
595
605
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
596
606
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
597
607
  line-height: calc(var(--odx-vertical-rythm-base-size) * 1.6667);
598
608
  font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
609
+ font-weight: var(--odx-typography-font-weight-medium);
610
+ letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
599
611
  }
600
612
  @media (min-width: 768px) {
601
- .odx-title-1, .odx-content h1,
613
+ .odx-heading-1, .odx-content h1,
614
+ .odx-title-1,
602
615
  .odx-subtitle-1 {
603
616
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
604
617
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
@@ -606,7 +619,14 @@ html body {
606
619
  }
607
620
  }
608
621
 
609
- .odx-title-2, .odx-area-header--xlarge .odx-area-header__title, .odx-content h2,
622
+ .odx-heading-2, .odx-area-header--xlarge .odx-area-header__title, .odx-content h2,
623
+ .odx-title-2 {
624
+ font-weight: var(--odx-typography-font-weight-medium);
625
+ letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
626
+ }
627
+
628
+ .odx-heading-2, .odx-area-header--xlarge .odx-area-header__title, .odx-content h2,
629
+ .odx-title-2,
610
630
  .odx-subtitle-2 {
611
631
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.25);
612
632
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.25);
@@ -614,7 +634,8 @@ html body {
614
634
  font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
615
635
  }
616
636
  @media (min-width: 768px) {
617
- .odx-title-2, .odx-area-header--xlarge .odx-area-header__title, .odx-content h2,
637
+ .odx-heading-2, .odx-area-header--xlarge .odx-area-header__title, .odx-content h2,
638
+ .odx-title-2,
618
639
  .odx-subtitle-2 {
619
640
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.375);
620
641
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.375);
@@ -622,7 +643,8 @@ html body {
622
643
  }
623
644
  }
624
645
 
625
- .odx-title-3, .odx-content h3,
646
+ .odx-heading-3, .odx-content h3,
647
+ .odx-title-3,
626
648
  .odx-subtitle-3 {
627
649
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
628
650
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
@@ -630,7 +652,8 @@ html body {
630
652
  font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
631
653
  }
632
654
  @media (min-width: 768px) {
633
- .odx-title-3, .odx-content h3,
655
+ .odx-heading-3, .odx-content h3,
656
+ .odx-title-3,
634
657
  .odx-subtitle-3 {
635
658
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.125);
636
659
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.125);
@@ -638,7 +661,8 @@ html body {
638
661
  }
639
662
  }
640
663
 
641
- .odx-title-4, .odx-error-page__title, .odx-area-header--large .odx-area-header__title, .odx-content h4,
664
+ .odx-heading-4, .odx-error-page__title, .odx-area-header--large .odx-area-header__title, .odx-content h4,
665
+ .odx-title-4,
642
666
  .odx-subtitle-4 {
643
667
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.375);
644
668
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.375);
@@ -646,25 +670,25 @@ html body {
646
670
  font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
647
671
  }
648
672
 
649
- .odx-title-5, .odx-area-header--medium .odx-area-header__title, .odx-content h5,
650
- .odx-subtitle-5,
651
- .odx-area-header--xlarge .odx-area-header__subtitle {
673
+ .odx-heading-5, .odx-area-header--medium .odx-area-header__title, .odx-area-header--xlarge .odx-area-header__subtitle, .odx-content h5,
674
+ .odx-title-5,
675
+ .odx-subtitle-5 {
652
676
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
653
677
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
654
678
  line-height: calc(var(--odx-vertical-rythm-base-size) * 1);
655
679
  font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)));
656
680
  }
657
681
 
658
- .odx-title-6, .odx-header__title, .odx-area-header__title, .odx-content h6,
659
- .odx-subtitle-6,
660
- .odx-area-header__subtitle {
682
+ .odx-heading-6, .odx-header__title, .odx-area-header__title, .odx-content h6,
683
+ .odx-title-6,
684
+ .odx-subtitle-6 {
661
685
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
662
686
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
663
687
  line-height: calc(var(--odx-vertical-rythm-base-size) * 1);
664
688
  font-size: calc(var(--odx-typography-base-size) * 1);
665
689
  }
666
690
 
667
- .odx-text, .odx-content p {
691
+ .odx-text, .odx-area-header__subtitle, .odx-content p {
668
692
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
669
693
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
670
694
  line-height: calc(var(--odx-vertical-rythm-base-size) * 1);
@@ -683,14 +707,22 @@ html body {
683
707
  line-height: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
684
708
  font-size: calc(var(--odx-typography-base-size) * (1*1/var(--odx-typography-negative-font-scaling-factor)*1/var(--odx-typography-negative-font-scaling-factor)));
685
709
  }
710
+ .odx-text--emphasized {
711
+ font-weight: var(--odx-typography-font-weight-semibold);
712
+ letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
713
+ }
686
714
 
715
+ /* .odx-headline is deprecated, use .odx-display instead */
716
+ .odx-display,
687
717
  .odx-headline,
718
+ [class*=odx-display-],
688
719
  [class*=odx-headline-] {
689
- color: var(--odx-c-headline);
690
- font-weight: var(--odx-typography-font-weight-normal);
691
- letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
720
+ color: var(--odx-c-display);
721
+ font-weight: var(--odx-typography-font-weight-medium);
722
+ letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
692
723
  }
693
724
 
725
+ .odx-display-sm,
694
726
  .odx-headline-sm {
695
727
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
696
728
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
@@ -698,6 +730,7 @@ html body {
698
730
  font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
699
731
  }
700
732
  @media (min-width: 480px) {
733
+ .odx-display-sm,
701
734
  .odx-headline-sm {
702
735
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
703
736
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
@@ -705,6 +738,7 @@ html body {
705
738
  }
706
739
  }
707
740
 
741
+ .odx-display-md,
708
742
  .odx-headline-md {
709
743
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.125);
710
744
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.125);
@@ -712,6 +746,7 @@ html body {
712
746
  font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
713
747
  }
714
748
  @media (min-width: 480px) {
749
+ .odx-display-md,
715
750
  .odx-headline-md {
716
751
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
717
752
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
@@ -719,6 +754,7 @@ html body {
719
754
  }
720
755
  }
721
756
 
757
+ .odx-display-lg,
722
758
  .odx-headline-lg {
723
759
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.0417);
724
760
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.0417);
@@ -726,6 +762,7 @@ html body {
726
762
  font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
727
763
  }
728
764
  @media (min-width: 480px) {
765
+ .odx-display-lg,
729
766
  .odx-headline-lg {
730
767
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
731
768
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
@@ -733,6 +770,7 @@ html body {
733
770
  }
734
771
  }
735
772
 
773
+ .odx-display-xl,
736
774
  .odx-headline-xl {
737
775
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
738
776
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
@@ -740,6 +778,7 @@ html body {
740
778
  font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
741
779
  }
742
780
  @media (min-width: 480px) {
781
+ .odx-display-xl,
743
782
  .odx-headline-xl {
744
783
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
745
784
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
@@ -2014,8 +2053,8 @@ html body .odx-fs-medium {
2014
2053
  html body b,
2015
2054
  html body strong,
2016
2055
  html body .odx-fs-bold {
2017
- font-weight: var(--odx-typography-font-weight-bold);
2018
- letter-spacing: var(--odx-typography-font-weight-bold-letter-spacing);
2056
+ font-weight: var(--odx-typography-font-weight-semibold);
2057
+ letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
2019
2058
  }
2020
2059
  html body em,
2021
2060
  html body .odx-fs-italic {
@@ -2744,8 +2783,8 @@ html body .odx-fs-italic {
2744
2783
  }
2745
2784
 
2746
2785
  :root {
2747
- --odx-area-header-title-color: var(--odx-c-headline);
2748
- --odx-area-header-subtitle-color: var(--odx-c-headline);
2786
+ --odx-area-header-title-color: var(--odx-c-display);
2787
+ --odx-area-header-subtitle-color: var(--odx-c-display);
2749
2788
  }
2750
2789
 
2751
2790
  .odx-area-header {
@@ -2843,10 +2882,6 @@ html body .odx-fs-italic {
2843
2882
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 1);
2844
2883
  }
2845
2884
  }
2846
- .odx-area-header--xlarge .odx-area-header__title {
2847
- font-weight: var(--odx-typography-font-weight-medium);
2848
- letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
2849
- }
2850
2885
  @media (min-width: 768px) {
2851
2886
  .odx-area-header--xlarge .odx-avatar {
2852
2887
  margin-top: calc(var(--odx-vertical-rythm-base-size) * -0.5);
@@ -3028,8 +3063,8 @@ html body .odx-fs-italic {
3028
3063
  color: var(--odx-c-link);
3029
3064
  }
3030
3065
  .odx-breadcrumbs .odx-link:last-child, .odx-breadcrumbs .odx-link:last-child:visited {
3031
- font-weight: var(--odx-typography-font-weight-bold);
3032
- letter-spacing: var(--odx-typography-font-weight-bold-letter-spacing);
3066
+ font-weight: var(--odx-typography-font-weight-semibold);
3067
+ letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
3033
3068
  color: var(--odx-c-text);
3034
3069
  }
3035
3070
 
@@ -3123,8 +3158,8 @@ html body .odx-fs-italic {
3123
3158
  .odx-brand-logo {
3124
3159
  color: inherit;
3125
3160
  display: inline-block;
3126
- font-weight: var(--odx-typography-font-weight-bold);
3127
- letter-spacing: var(--odx-typography-font-weight-bold-letter-spacing);
3161
+ font-weight: var(--odx-typography-font-weight-semibold);
3162
+ letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
3128
3163
  }
3129
3164
  .odx-brand-logo::before {
3130
3165
  color: var(--odx-c-highlight);
@@ -3429,8 +3464,8 @@ html body .odx-fs-italic {
3429
3464
  margin-left: calc(var(--odx-vertical-rythm-base-size) * -0.1666);
3430
3465
  }
3431
3466
  .odx-calendar-month .odx-calendar__weekdays {
3432
- font-weight: var(--odx-typography-font-weight-bold);
3433
- letter-spacing: var(--odx-typography-font-weight-bold-letter-spacing);
3467
+ font-weight: var(--odx-typography-font-weight-semibold);
3468
+ letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
3434
3469
  font-size: calc(var(--odx-typography-base-size) * (1*1/var(--odx-typography-negative-font-scaling-factor)));
3435
3470
  outline-color: transparent;
3436
3471
  pointer-events: none;
@@ -4475,12 +4510,12 @@ html body .odx-fs-italic {
4475
4510
  margin-inline-end: calc(var(--odx-vertical-rythm-base-size) * 0.5);
4476
4511
  padding-inline-end: calc(var(--odx-vertical-rythm-base-size) * 0.5);
4477
4512
  }
4478
- .odx-header:has(> .odx-title, > .odx-header__title) > .odx-logo {
4513
+ .odx-header:has(> .odx-heading, > .odx-header__title) > .odx-logo {
4479
4514
  display: none;
4480
4515
  margin-inline-end: calc(var(--odx-vertical-rythm-base-size) * 0.5);
4481
4516
  }
4482
4517
  @media (min-width: 768px) {
4483
- .odx-header:has(> .odx-title, > .odx-header__title) > .odx-logo {
4518
+ .odx-header:has(> .odx-heading, > .odx-header__title) > .odx-logo {
4484
4519
  display: block;
4485
4520
  }
4486
4521
  }
@@ -5546,8 +5581,8 @@ html body .odx-fs-italic {
5546
5581
  -moz-user-select: none;
5547
5582
  user-select: none;
5548
5583
  font-size: calc(var(--odx-typography-base-size) * 1);
5549
- font-weight: var(--odx-typography-font-weight-bold);
5550
- letter-spacing: var(--odx-typography-font-weight-bold-letter-spacing);
5584
+ font-weight: var(--odx-typography-font-weight-semibold);
5585
+ letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
5551
5586
  }
5552
5587
  .odx-notification-center__content {
5553
5588
  display: grid;
@@ -6950,7 +6985,7 @@ html body .odx-fs-italic {
6950
6985
  overflow: auto;
6951
6986
  }
6952
6987
  .odx-toast-item__title {
6953
- font-weight: var(--odx-typography-font-weight-bold);
6988
+ font-weight: var(--odx-typography-font-weight-semibold);
6954
6989
  }
6955
6990
  .odx-toast-item__description {
6956
6991
  max-height: calc(var(--odx-vertical-rythm-base-size) * 5);
@@ -7391,7 +7426,7 @@ html body .odx-fs-italic {
7391
7426
  }
7392
7427
  .odx-wizard-step__icon {
7393
7428
  font-size: calc(var(--odx-vertical-rythm-base-size) * 0.5417);
7394
- font-weight: var(--odx-typography-font-weight-bold);
7429
+ font-weight: var(--odx-typography-font-weight-semibold);
7395
7430
  height: calc(var(--odx-vertical-rythm-base-size) * 0.5417);
7396
7431
  visibility: hidden;
7397
7432
  width: calc(var(--odx-vertical-rythm-base-size) * 0.5417);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "4.7.1",
3
+ "version": "4.8.0",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -241,7 +241,7 @@
241
241
  .ag-paging-panel {
242
242
  .ag-paging-row-summary-panel-number,
243
243
  .ag-paging-number {
244
- font-weight: var(--odx-typography-font-weight-bold);
244
+ font-weight: var(--odx-typography-font-weight-semibold);
245
245
  }
246
246
  }
247
247
 
@@ -7,8 +7,8 @@
7
7
  @use '../layout/typography' as *;
8
8
 
9
9
  :root {
10
- --odx-area-header-title-color: var(--odx-c-headline);
11
- --odx-area-header-subtitle-color: var(--odx-c-headline);
10
+ --odx-area-header-title-color: var(--odx-c-display);
11
+ --odx-area-header-subtitle-color: var(--odx-c-display);
12
12
  }
13
13
 
14
14
  .odx-area-header {
@@ -51,8 +51,8 @@
51
51
  }
52
52
 
53
53
  &__title {
54
- @extend .odx-title;
55
- @extend .odx-title-6;
54
+ @extend .odx-heading;
55
+ @extend .odx-heading-6;
56
56
 
57
57
  color: var(--odx-area-header-title-color);
58
58
  font-weight: 600;
@@ -60,8 +60,7 @@
60
60
 
61
61
  &__subtitle {
62
62
  @include typography.prevent-text-overflow();
63
- @extend .odx-subtitle;
64
- @extend .odx-subtitle-6;
63
+ @extend .odx-text;
65
64
 
66
65
  color: var(--odx-area-header-subtitle-color);
67
66
  }
@@ -104,7 +103,7 @@
104
103
  }
105
104
 
106
105
  .odx-area-header__title {
107
- @extend .odx-title-5;
106
+ @extend .odx-heading-5;
108
107
  }
109
108
  }
110
109
 
@@ -112,7 +111,7 @@
112
111
  @include dimensions.padding-y(0.5);
113
112
 
114
113
  .odx-area-header__title {
115
- @extend .odx-title-4;
114
+ @extend .odx-heading-4;
116
115
 
117
116
  @include breakpoints.down(tablet) {
118
117
  @include dimensions.line-height(1);
@@ -138,12 +137,11 @@
138
137
  }
139
138
 
140
139
  .odx-area-header__title {
141
- @extend .odx-title-2;
142
- @include typography.font-weight(medium);
140
+ @extend .odx-heading-2;
143
141
  }
144
142
 
145
143
  .odx-area-header__subtitle {
146
- @extend .odx-subtitle-5;
144
+ @extend .odx-heading-5;
147
145
  }
148
146
 
149
147
  .odx-avatar {
@@ -4,7 +4,7 @@
4
4
  color: inherit;
5
5
  display: inline-block;
6
6
 
7
- @include typography.font-weight(bold);
7
+ @include typography.font-weight(semibold);
8
8
 
9
9
  &::before {
10
10
  color: var(--odx-c-highlight);
@@ -37,7 +37,7 @@
37
37
 
38
38
  &:last-child,
39
39
  &:last-child:visited {
40
- @include typography.font-weight(bold);
40
+ @include typography.font-weight(semibold);
41
41
 
42
42
  color: var(--odx-c-text);
43
43
  }
@@ -90,7 +90,7 @@
90
90
  }
91
91
 
92
92
  #{$root}__weekdays {
93
- @include typography.font-weight(bold);
93
+ @include typography.font-weight(semibold);
94
94
  @include typography.font-size(-1);
95
95
  @include utils.non-interactive();
96
96
 
@@ -12,7 +12,7 @@
12
12
  flex-direction: column;
13
13
 
14
14
  &__title {
15
- @extend .odx-title-4;
15
+ @extend .odx-heading-4;
16
16
  }
17
17
 
18
18
  &__container {
@@ -43,8 +43,8 @@
43
43
  }
44
44
 
45
45
  &__title {
46
- @extend .odx-title;
47
- @extend .odx-title-6;
46
+ @extend .odx-heading;
47
+ @extend .odx-heading-6;
48
48
  @include typography.prevent-text-overflow();
49
49
 
50
50
  overflow: hidden;
@@ -56,7 +56,7 @@
56
56
  padding-inline-end: dimensions.get-size(0.5);
57
57
  }
58
58
 
59
- &:has(> .odx-title) > .odx-logo {
59
+ &:has(> .odx-heading) > .odx-logo {
60
60
  display: none;
61
61
  margin-inline-end: dimensions.get-size(0.5);
62
62
 
@@ -35,7 +35,7 @@
35
35
  user-select: none;
36
36
 
37
37
  @include typography.font-size(0);
38
- @include typography.font-weight(bold);
38
+ @include typography.font-weight(semibold);
39
39
  }
40
40
 
41
41
  &__content {
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  &__title {
34
- font-weight: var(--odx-typography-font-weight-bold);
34
+ font-weight: var(--odx-typography-font-weight-semibold);
35
35
  }
36
36
 
37
37
  &__description {
@@ -236,7 +236,7 @@
236
236
 
237
237
  &__icon {
238
238
  font-size: $icon-size;
239
- font-weight: var(--odx-typography-font-weight-bold);
239
+ font-weight: var(--odx-typography-font-weight-semibold);
240
240
  height: $icon-size;
241
241
  visibility: hidden;
242
242
  width: $icon-size;
@@ -5,8 +5,8 @@
5
5
  .odx-content {
6
6
  @for $i from 1 through 6 {
7
7
  h#{$i} {
8
- @extend .odx-title;
9
- @extend .odx-title-#{$i};
8
+ @extend .odx-heading;
9
+ @extend .odx-heading-#{$i};
10
10
  }
11
11
  }
12
12
 
@@ -75,7 +75,7 @@ html body {
75
75
  b,
76
76
  strong,
77
77
  .odx-fs-bold {
78
- @include typography.font-weight(bold);
78
+ @include typography.font-weight(semibold);
79
79
  }
80
80
 
81
81
  em,
@@ -6,7 +6,7 @@
6
6
  @font-face {
7
7
  font-family: PangeaText;
8
8
  font-style: normal;
9
- font-weight: normal;
9
+ font-weight: 400;
10
10
  src: url('../assets/fonts/PangeaText-RegularWeb.woff2') format('woff2');
11
11
  }
12
12
 
@@ -20,7 +20,7 @@
20
20
  @font-face {
21
21
  font-family: PangeaText;
22
22
  font-style: normal;
23
- font-weight: bold;
23
+ font-weight: 600;
24
24
  src: url('../assets/fonts/PangeaText-SemiBoldWeb.woff2') format('woff2');
25
25
  }
26
26
 
@@ -37,29 +37,41 @@ html body {
37
37
  font-family: var(--odx-typography-font-family);
38
38
  }
39
39
 
40
+ /* Deprecated .odx-title. Use .odx-heading instead. Keeping the old classes for compatibility. */
41
+ .odx-heading,
40
42
  .odx-title,
43
+ [class*='odx-heading-'],
41
44
  [class*='odx-title-'] {
42
- @include typography.font-weight(bold);
45
+ @include typography.font-weight(semibold);
43
46
 
44
- color: var(--odx-c-headline);
47
+ color: var(--odx-c-display);
45
48
  }
46
49
 
50
+ /* Deprecated odx-subtitle. Subtitles were removed from figma. Keeping the old classes for compatibility. */
47
51
  .odx-subtitle,
48
52
  [class*='odx-subtitle-'] {
49
53
  @extend .odx-title;
50
54
  @include typography.font-weight(normal);
51
55
  }
52
56
 
57
+ .odx-heading-1,
53
58
  .odx-title-1,
54
59
  .odx-subtitle-1 {
55
60
  @include dimensions.line-height(2, math.div(40, 24));
56
61
  @include typography.font-size(5);
62
+ @include typography.font-weight(medium);
57
63
 
58
64
  @include breakpoints.up(tablet) {
59
65
  @include dimensions.line-height(3, math.div(64, 24));
60
66
  }
61
67
  }
62
68
 
69
+ .odx-heading-2,
70
+ .odx-title-2 {
71
+ @include typography.font-weight(medium);
72
+ }
73
+
74
+ .odx-heading-2,
63
75
  .odx-title-2,
64
76
  .odx-subtitle-2 {
65
77
  @include dimensions.line-height(2, 1.5);
@@ -70,6 +82,7 @@ html body {
70
82
  }
71
83
  }
72
84
 
85
+ .odx-heading-3,
73
86
  .odx-title-3,
74
87
  .odx-subtitle-3 {
75
88
  @include dimensions.line-height(2, math.div(32, 24));
@@ -80,18 +93,21 @@ html body {
80
93
  }
81
94
  }
82
95
 
96
+ .odx-heading-4,
83
97
  .odx-title-4,
84
98
  .odx-subtitle-4 {
85
99
  @include dimensions.line-height(2, math.div(30, 24));
86
100
  @include typography.font-size(2);
87
101
  }
88
102
 
103
+ .odx-heading-5,
89
104
  .odx-title-5,
90
105
  .odx-subtitle-5 {
91
106
  @include dimensions.line-height(1);
92
107
  @include typography.font-size(1);
93
108
  }
94
109
 
110
+ .odx-heading-6,
95
111
  .odx-title-6,
96
112
  .odx-subtitle-6 {
97
113
  @include dimensions.line-height(1);
@@ -111,15 +127,23 @@ html body {
111
127
  @include dimensions.line-height(1, math.div(16, 24));
112
128
  @include typography.font-size(-2);
113
129
  }
130
+
131
+ &--emphasized {
132
+ @include typography.font-weight(semibold);
133
+ }
114
134
  }
115
135
 
136
+ /* .odx-headline is deprecated, use .odx-display instead */
137
+ .odx-display,
116
138
  .odx-headline,
139
+ [class*='odx-display-'],
117
140
  [class*='odx-headline-'] {
118
- color: var(--odx-c-headline);
141
+ color: var(--odx-c-display);
119
142
 
120
- @include typography.font-weight(normal);
143
+ @include typography.font-weight(medium);
121
144
  }
122
145
 
146
+ .odx-display-sm,
123
147
  .odx-headline-sm {
124
148
  @include dimensions.line-height(2, math.div(40, 24));
125
149
  @include typography.font-size(5);
@@ -129,6 +153,7 @@ html body {
129
153
  }
130
154
  }
131
155
 
156
+ .odx-display-md,
132
157
  .odx-headline-md {
133
158
  @include dimensions.line-height(2, math.div(42, 24));
134
159
  @include typography.font-size(6);
@@ -138,6 +163,7 @@ html body {
138
163
  }
139
164
  }
140
165
 
166
+ .odx-display-lg,
141
167
  .odx-headline-lg {
142
168
  @include dimensions.line-height(2, math.div(46, 24));
143
169
  @include typography.font-size(7);
@@ -147,6 +173,7 @@ html body {
147
173
  }
148
174
  }
149
175
 
176
+ .odx-display-xl,
150
177
  .odx-headline-xl {
151
178
  @include dimensions.line-height(2);
152
179
  @include typography.font-size(8);
@@ -1,7 +1,8 @@
1
1
  @use '../abstract/utils';
2
2
 
3
3
  @include utils.theme-selector(dark) {
4
- --odx-c-headline: var(--blue-900);
4
+ --odx-c-display: var(--blue-900);
5
+ --odx-c-headline: var(--blue-900); // deprecated. Use --odx-c-display instead
5
6
 
6
7
  --odx-c-text: var(--blue-900);
7
8
  --odx-c-text-inverse: var(--black);
@@ -1,5 +1,6 @@
1
1
  :root {
2
- --odx-c-headline: var(--blue-700);
2
+ --odx-c-display: var(--blue-700);
3
+ --odx-c-headline: var(--blue-700); // deprecated. Use --odx-c-display instead
3
4
 
4
5
  --odx-c-text: var(--blue-700);
5
6
  --odx-c-text-inverse: var(--white);
@@ -4,12 +4,14 @@
4
4
  --odx-typography-font-family: 'PangeaText', 'Arial', sans-serif;
5
5
  --odx-typography-base-size: 1.6rem; // clamp(1.4rem, 0.667vw + 1rem, 1.6rem);
6
6
  --odx-typography-base-line-height: 1.5;
7
- --odx-typography-font-weight-normal: normal;
7
+ --odx-typography-font-weight-normal: 400;
8
8
  --odx-typography-font-weight-normal-letter-spacing: 0;
9
9
  --odx-typography-font-weight-medium: 500;
10
10
  --odx-typography-font-weight-medium-letter-spacing: -0.19px;
11
- --odx-typography-font-weight-bold: bold;
12
- --odx-typography-font-weight-bold-letter-spacing: 0;
11
+ --odx-typography-font-weight-semibold: 600;
12
+ --odx-typography-font-weight-semibold-letter-spacing: 0;
13
+ --odx-typography-font-weight-bold: var(--odx-typography-font-weight-semibold);
14
+ --odx-typography-font-weight-bold-letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
13
15
  --odx-typography-positive-font-scaling-factor: 1.125;
14
16
  --odx-typography-negative-font-scaling-factor: 1.2;
15
17