qpp-design-system 0.3.1 → 0.4.1

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.
@@ -507,45 +507,63 @@ h5,
507
507
  h6 {
508
508
  font-family: var(--font-family-heading);
509
509
  line-height: var(--font-line-height-heading);
510
- margin-block: 0.5em 0;
511
510
  }
512
511
 
513
- h1 {
512
+ h1, .qpp-h1 {
514
513
  font-size: var(--font-size-4xl); /* 3rem */
515
514
  font-weight: var(--font-weight-heading-4xl); /* 400 */
516
515
  }
517
516
 
518
- h2 {
517
+ h2, .qpp-h2 {
519
518
  font-size: var(--font-size-3xl); /* 2.25rem */
520
519
  font-weight: var(--font-weight-heading-3xl); /* 400 */
521
520
  }
522
521
 
523
- h3 {
522
+ h3, .qpp-h3 {
524
523
  font-size: var(--font-size-2xl); /* 1.5rem */
525
524
  font-weight: var(--font-weight-heading-2xl); /* 500 */
526
525
  }
527
526
 
528
- h4 {
527
+ h4, .qpp-h4 {
529
528
  font-size: var(--font-size-xl); /* 1.3125rem */
530
529
  font-weight: var(--font-weight-heading-xl); /* 500 */
531
530
  }
532
531
 
533
- h5 {
532
+ h5, .qpp-h5 {
534
533
  font-size: var(--font-size-lg); /* 1.125rem */
535
534
  font-weight: var(--font-weight-heading-lg); /* 500 */
536
535
  }
537
536
 
538
- h6 {
537
+ h6, .qpp-h6 {
539
538
  font-size: var(--font-size-md); /* 1rem */
540
539
  font-weight: var(--font-weight-heading-md); /* 500 */
541
540
  }
542
541
 
543
542
  @media (max-width: 768px) {
544
- h1 {
543
+ h1, .qpp-h1 {
545
544
  font-size: var(--font-size-4xl--mobile); /* 2.25rem */
546
545
  }
547
546
 
548
- h2 {
547
+ h2, .qpp-h2 {
549
548
  font-size: var(--font-size-3xl--mobile); /* 1.875rem */
550
549
  }
551
550
  }
551
+
552
+ /* Reset CMS default margin-block spacing to prevent unexpected top/bottom margins on consuming apps */
553
+ h1,
554
+ h2,
555
+ h3,
556
+ h4,
557
+ h5,
558
+ h6,
559
+ p,
560
+ ol,
561
+ ul,
562
+ legend,
563
+ label,
564
+ input,
565
+ button,
566
+ textarea,
567
+ select {
568
+ margin-block: 0 !important;
569
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qpp-design-system",
3
- "version": "0.3.1",
3
+ "version": "0.4.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "QPP Design System",