PluginProbe
Tableberg – Simple Gutenberg Table Block / 1.2.0
Tableberg – Simple Gutenberg Table Block v1.2.0
1.2.0 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 trunk 0.0.2 0.2.1 0.3.2 0.3.3 0.4.1 0.5.0 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 All 43 releases
← All changes | src/blocks/text/element.tsx +8 -4 1.1.5 → 1.2.0 View file →
@@ -53,12 +53,16 @@
53 53 export const textAttributeDefaults: TextElementAttributes = {
54 54 content: "",
55 55 align: "left",
56 56 styles: {
57 - textColor: "#000000",
57 + // No colour of its own: the text takes the row's (and through it the
58 + // theme's), the way the core Table block does.
59 + textColor: "",
58 60 linkColor: "",
59 61 backgroundColor: "",
60 - fontSize: "1.38rem",
62 + // No size of its own: the text takes the table's (and through it
63 + // the theme's) font size, the way the core Table block does.
64 + fontSize: "",
61 65 padding: { ...emptySides },
62 66 margin: { ...emptySides },
63 67 },
64 68 };
@@ -292,10 +296,10 @@
292 296 "--tableberg-text-link-color": linkColor || undefined,
293 297 };
294 298
295 299 const elementClassName = `tableberg-text-element${
296 - dynamicBindingEnabled ? " tableberg-dynamic-content" : ""
297 - }`;
300 + linkColor ? " tableberg-has-link-color" : ""
301 + }${dynamicBindingEnabled ? " tableberg-dynamic-content" : ""}`;
298 302
299 303 if (isDynamicLoading) {
300 304 return (
301 305 <p className={elementClassName} style={textStyle}>