Skip to content

Commit 77c9672

Browse files
author
Zerline
committed
New border attributes for layout.
1 parent 7cb20cd commit 77c9672

File tree

4 files changed

+1327
-502
lines changed

4 files changed

+1327
-502
lines changed

ipywidgets/widgets/widget_layout.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ class Layout(Widget):
3838
align_self = CaselessStrEnum(['auto', 'flex-start', 'flex-end',
3939
'center', 'baseline', 'stretch'] + CSS_PROPERTIES, allow_none=True, help="The align-self CSS attribute.").tag(sync=True)
4040
bottom = Unicode(None, allow_none=True, help="The bottom CSS attribute.").tag(sync=True)
41-
border = Unicode(None, allow_none=True, help="The border CSS attribute.").tag(sync=True)
41+
border_collapse = Unicode(None, allow_none=True, help="The border collapse CSS attribute.").tag(sync=True)
42+
border_color = Unicode(None, allow_none=True, help="The border color CSS attribute.").tag(sync=True)
43+
border_image = Unicode(None, allow_none=True, help="The border image CSS attribute.").tag(sync=True)
44+
border_radius = Unicode(None, allow_none=True, help="The border radius CSS attribute.").tag(sync=True)
45+
border_style = Unicode(None, allow_none=True, help="The border style CSS attribute.").tag(sync=True)
46+
border_width = Unicode(None, allow_none=True, help="The border width CSS attribute.").tag(sync=True)
4247
display = Unicode(None, allow_none=True, help="The display CSS attribute.").tag(sync=True)
4348
flex = Unicode(None, allow_none=True, help="The flex CSS attribute.").tag(sync=True)
4449
flex_flow = Unicode(None, allow_none=True, help="The flex-flow CSS attribute.").tag(sync=True)

packages/base/src/widget_layout.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ const css_properties: Dict<string | null> = {
1212
align_content: null,
1313
align_items: null,
1414
align_self: null,
15-
border: null,
15+
border_collapse: null,
16+
border_color: null,
17+
border_image: null,
18+
border_radius: null,
19+
border_style: null,
20+
border_width: null,
1621
bottom: null,
1722
display: null,
1823
flex: null,

0 commit comments

Comments
 (0)