Skip to content

Commit

Permalink
feat: Added padding to Flex (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-martinez authored Oct 5, 2021
1 parent 41c3774 commit 0fc7f47
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/components/flex.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
"description": "If true the flex will scroll if there is too many item in the Main Axis.",
"type": "boolean",
"default": false
},
"padding": {
"$ref": "defs/padding.schema.json"
}
},
"required": [
Expand Down
26 changes: 26 additions & 0 deletions api/defs/padding.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "https://raw.githubusercontent.com/lenra-io/ex_component_schema/beta/priv/static/draft-lenra.json",
"$id": "padding.schema.json",
"title": "Padding",
"description": "Element of type Padding",
"type": "object",
"properties": {
"top": {
"type": "number",
"default": 0.0
},
"left": {
"type": "number",
"default": 0.0
},
"bottom": {
"type": "number",
"default": 0.0
},
"right": {
"type": "number",
"default": 0.0
}
},
"additionalProperties": false
}

0 comments on commit 0fc7f47

Please sign in to comment.