-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try: Remove segmented control vertical separators #35497
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,6 +2,10 @@ | |||||
|
||||||
## Unreleased | ||||||
|
||||||
### Change | ||||||
|
||||||
- Removed the separator shown between items. ([#35497](https://github.com/WordPress/gutenberg/pull/35497)). | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can probably be a bit more specific
Suggested change
|
||||||
|
||||||
### Breaking Changes | ||||||
|
||||||
- Removed the deprecated `position` and `menuLabel` from the `DropdownMenu` component ([#34537](https://github.com/WordPress/gutenberg/pull/34537)). | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ This feature is still experimental. “Experimental” means this is an early im | |
|
||
`ToggleGroupControl` is a form component that lets users choose options represented in horizontal segments. To render options for this control use `ToggleGroupControlOption` component. | ||
|
||
Only use this control when you know for sure the labels of items inside won't wrap. For items with longer labels, you can consider a Dropdown component instead. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The In any case, if we mention a component's name, it's better to wrap it in backticks for better formatting. Otherwise, the alternative here could be to be more generic and just mention "you can consider a select/dropdown component instead". WDYT? |
||
|
||
## Usage | ||
|
||
```js | ||
|
@@ -91,4 +93,4 @@ Label for the option. If needed, the `aria-label` prop can be used in addition t | |
|
||
- Type: `string | number` | ||
|
||
The value of the `ToggleGroupControlOption`. | ||
The value of the `ToggleGroupControlOption`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I've seen a
Change
section in the changelog before. Maybe we can call itEnhancements
for now? 🤷