You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5c7b25f
Browse filesBrowse the repository at this point in the historyBrowse files
Adds the component variations and the hook that replace Box styling props on Fuselage components:
6
+
7
+
-`TableCell` accepts `truncate`, which keeps its content on one line cut with an ellipsis, `color='default' | 'hint'`, and `strong`, which renders the text in the medium weight.
8
+
-`Contextualbar` accepts `stretch`, which makes it as wide as its container.
9
+
-`ContextualbarContent` accepts `flush`, which drops its inline padding, and `spaced`, which adds a 12px block padding.
10
+
-`ModalFooter` accepts `justify='space-between'`, and `ModalIcon` accepts `align='end'`.
11
+
-`Table``columns` take pixel and percentage widths (`'150px'`, `40`, `'20%'`) besides Fuselage sizes.
12
+
-`useStyle` is exported: it turns a style built with `css` into a class name, for a `className` that takes strings only.
Fuselage components no longer accept `Box` styling props. Their props are now the DOM and ARIA attributes of the element they render plus the variations each component declares, so TypeScript rejects `margin*`, `width`, `flexGrow`, `fontScale`, `color` and the other `Box` styling props, a free `is`, and a `className` built with `css` or passed as an array (it must be a string; `useStyle` turns a `css` style into one). `rcx-*` props are not part of any component's API either. To lay out or style a component, place it in a `Box` (a container with `gap`, or a wrapper) or use one of the component's own variations. `Box`, `Flex`, `Margins` and `Scrollable` keep accepting styling props.
6
+
7
+
Some components swap a styling prop they used to read for a named variation:
8
+
9
+
-`Contextualbar` takes `stretch` instead of `width='100%'`, no longer takes `backgroundColor`, and its `position` is one of `static`, `relative`, `absolute` or `fixed`.
10
+
-`ModalFooter` takes `justify` instead of `justifyContent`, and `ModalIcon` takes `align` instead of `alignItems`.
11
+
-`Tile` takes `flush` instead of `padding`.
12
+
-`Modal` keeps `width` and `height` and also takes `maxHeight`; `Options` keeps `maxHeight`; `Tile` keeps `elevation`; `Throbber` and `ModalIcon` keep `size`; `InputBox` keeps `invisible`.
13
+
-`Select`, `PaginatedSelect` and `PaginatedMultiSelect` take `name`.
0 commit comments