Merge pull request #267 from Budibase/Further-prop-changes

Font numerical weights added and line decorations added
This commit is contained in:
Joe 2020-05-29 13:19:41 +01:00 committed by GitHub
commit 6c345103c6
1 changed files with 23 additions and 4 deletions

View File

@ -167,10 +167,15 @@ export const typography = [
key: "font-weight", key: "font-weight",
control: OptionSelect, control: OptionSelect,
options: [ options: [
{ label: "normal" }, { label: "100", value: "100" },
{ label: "bold" }, { label: "200", value: "200" },
{ label: "bolder" }, { label: "300", value: "300" },
{ label: "lighter" }, { label: "400", value: "400" },
{ label: "500", value: "500" },
{ label: "600", value: "600" },
{ label: "700", value: "700" },
{ label: "800", value: "800" },
{ label: "900", value: "900" },
], ],
}, },
{ label: "size", key: "font-size", defaultValue: "", control: Input }, { label: "size", key: "font-size", defaultValue: "", control: Input },
@ -186,6 +191,20 @@ export const typography = [
control: OptionSelect, control: OptionSelect,
options: ["initial", "left", "right", "center", "justify"], options: ["initial", "left", "right", "center", "justify"],
}, //custom }, //custom
{
label: "Decoration",
key: "text-decoration-line",
control: OptionSelect,
defaultValue: "Underline",
options: [
{ label: "Underline", value: "underline" },
{ label: "None", value: "none" },
{ label: "Overline", value: "overline" },
{ label: "Line-through", value: "line-through" },
{ label: "Under Over", value: "underline overline" },
],
},
{ label: "transform", key: "text-transform", control: Input }, //custom { label: "transform", key: "text-transform", control: Input }, //custom
{ label: "style", key: "font-style", control: Input }, //custom { label: "style", key: "font-style", control: Input }, //custom
] ]