Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

### Bug Fixes

- `InputLayout.Slot`: Forward the incoming `className` prop instead of letting it be silently overwritten by the rest spread ([#76459](https://github.com/WordPress/gutenberg/pull/76459)).
- `VisuallyHidden`: Add `word-break: normal` to prevent text wrapping issues in screen reader content ([#75539](https://github.com/WordPress/gutenberg/pull/75539)).

### Enhancements
Expand Down
8 changes: 6 additions & 2 deletions packages/ui/src/form/primitives/input-layout/slot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ import type { InputLayoutSlotProps } from './types';
export const InputLayoutSlot = forwardRef<
HTMLDivElement,
InputLayoutSlotProps
>( function InputLayoutSlot( { padding = 'default', ...restProps }, ref ) {
>( function InputLayoutSlot(
{ padding = 'default', className, ...restProps },
ref
) {
return (
<div
ref={ ref }
className={ clsx(
styles[ 'input-layout-slot' ],
styles[ `is-padding-${ padding }` ]
styles[ `is-padding-${ padding }` ],
className
) }
{ ...restProps }
/>
Expand Down
Loading