@trebired/frontend 12.1.2 → 12.2.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
@@ -4,6 +4,16 @@ All notable changes to `@trebired/frontend` will be documented here.
4
4
 
5
5
  This project follows semantic versioning once published.
6
6
 
7
+ ## 12.2.0
8
+
9
+ ### Changed
10
+
11
+ - Card titles are styled by an opt-in `card-title` class instead of the `h2` element.
12
+ `.card h2` forced 15px/700, so an `h2` rendered smaller and heavier than an `h3` beside
13
+ it and the heading scale was inverted inside every card. Headings in cards now follow
14
+ the normal `h1`-`h6` scale. The `surfaces.card.title` tokens are unchanged and now apply
15
+ to `card-title`; add that class to any element that should keep the compact label look.
16
+
7
17
  ## 12.1.2
8
18
 
9
19
  ### Fixed
@@ -6,12 +6,12 @@
6
6
  background: var(#{ns.css-var("surf-card-root-bg")}, var(--background-page));
7
7
  padding: var(#{ns.css-var("surf-card-root-padding")}, 14px 14px 12px 14px);
8
8
  overflow: hidden;
9
+ }
9
10
 
10
- h2 {
11
- margin: var(#{ns.css-var("surf-card-title-margin")}, 0 0 10px 0);
12
- font-size: var(#{ns.css-var("surf-card-title-font-size")}, 15px);
13
- font-weight: var(#{ns.css-var("surf-card-title-font-weight")}, 700);
14
- }
11
+ .card-title {
12
+ margin: var(#{ns.css-var("surf-card-title-margin")}, 0 0 10px 0);
13
+ font-size: var(#{ns.css-var("surf-card-title-font-size")}, 15px);
14
+ font-weight: var(#{ns.css-var("surf-card-title-font-weight")}, 700);
15
15
  }
16
16
 
17
17
  .card-row {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "name": "@trebired/frontend",
11
- "version": "12.1.2",
11
+ "version": "12.2.0",
12
12
  "description": "Generic browser runtime systems for Trebired frontend packages and applications.",
13
13
  "type": "module",
14
14
  "private": false,