cf-elements 1.0.6 → 1.0.7
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/cf-elements.js +5 -5
- package/package.json +1 -1
package/cf-elements.js
CHANGED
|
@@ -2181,7 +2181,7 @@
|
|
|
2181
2181
|
class CFHeadline extends CFElement {
|
|
2182
2182
|
render() {
|
|
2183
2183
|
const elementId = attr(this, "element-id");
|
|
2184
|
-
const size = attr(this, "size", "48px");
|
|
2184
|
+
const size = attr(this, "font-size") || attr(this, "size", "48px");
|
|
2185
2185
|
const weight = attr(this, "weight", "bold");
|
|
2186
2186
|
const font = attr(this, "font");
|
|
2187
2187
|
const color = attr(this, "color");
|
|
@@ -2277,7 +2277,7 @@
|
|
|
2277
2277
|
class CFSubheadline extends CFElement {
|
|
2278
2278
|
render() {
|
|
2279
2279
|
const elementId = attr(this, "element-id");
|
|
2280
|
-
const size = attr(this, "size", "24px");
|
|
2280
|
+
const size = attr(this, "font-size") || attr(this, "size", "24px");
|
|
2281
2281
|
const weight = attr(this, "weight", "normal");
|
|
2282
2282
|
const font = attr(this, "font");
|
|
2283
2283
|
const color = attr(this, "color");
|
|
@@ -2371,7 +2371,7 @@
|
|
|
2371
2371
|
class CFParagraph extends CFElement {
|
|
2372
2372
|
render() {
|
|
2373
2373
|
const elementId = attr(this, "element-id");
|
|
2374
|
-
const size = attr(this, "size", "16px");
|
|
2374
|
+
const size = attr(this, "font-size") || attr(this, "size", "16px");
|
|
2375
2375
|
const weight = attr(this, "weight", "normal");
|
|
2376
2376
|
const font = attr(this, "font");
|
|
2377
2377
|
const color = attr(this, "color");
|
|
@@ -2530,7 +2530,7 @@
|
|
|
2530
2530
|
// Always read attribute values - we need them for data attributes even if using styleguide
|
|
2531
2531
|
const bg = attr(this, "bg", "#3b82f6");
|
|
2532
2532
|
const color = attr(this, "color", "#ffffff");
|
|
2533
|
-
const size = attr(this, "size", "20px");
|
|
2533
|
+
const size = attr(this, "font-size") || attr(this, "size", "20px");
|
|
2534
2534
|
const weight = attr(this, "weight", "bold");
|
|
2535
2535
|
const px = attr(this, "px", "32px");
|
|
2536
2536
|
const py = attr(this, "py", "16px");
|
|
@@ -3553,7 +3553,7 @@
|
|
|
3553
3553
|
const textColor = attr(this, "text-color"); // No default - allows paint inheritance
|
|
3554
3554
|
const hasExplicitTextColor = this.hasAttribute("text-color");
|
|
3555
3555
|
const iconSize = attr(this, "icon-size", "16px");
|
|
3556
|
-
const size = attr(this, "size", "
|
|
3556
|
+
const size = attr(this, "font-size") || attr(this, "size", "16px"); // Direct px value or preset fallback
|
|
3557
3557
|
const gap = attr(this, "gap", "12px");
|
|
3558
3558
|
const itemGap = attr(this, "item-gap", "8px");
|
|
3559
3559
|
const align = attr(this, "align", "left");
|
package/package.json
CHANGED