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
⚠️ Breaking change to `Hero.Image` and `Hero.Video` ⚠️
7
+
8
+
Previously combined `padding` and `position` semantics have been separated.
9
+
10
+
The `position` prop will now only control layout and positioning relative to the content. It accepts `block-end`, `inline-start`, or `inline-end`.
11
+
12
+
Use `padding` to control the distance between the media container boundary and the media itself. `padding="all"` instead of the removed `*-padded` position values, or `padding="none"` to remove media padding and corner radius. The default padding remains position-specific.
CSS-only consumers should replace the removed `*-padded` position modifiers with the corresponding position and padding modifiers, such as `.Hero-media--pos-block-end.Hero-media--padding-all`.
|`position`| <HeroImagePositionProp /> |`'block-end'`| Controls positioning of the child video element |
282
-
|`poster`|`string`|| URL of the poster image to display before video plays. When set, `posterAltText` and `posterTitle` are required |
283
-
|`posterAltText`|`string`|| Alt text for the poster image. Required when `poster` is set |
284
-
|`posterTitle`|`string`|| Title text displayed on the poster overlay. Required when `poster` is set |
278
+
`position` and `padding` props currently only apply to `gridline` variants. The `default` Hero variant ignores non-default media padding and logs a warning during development.
0 commit comments