Skip to content

Commit

Permalink
PaletteEdit: Consider digits when generating kebab-cased slug (#56713)
Browse files Browse the repository at this point in the history
* PaletteEdit: Consider digits when generating kebab-cased slug

* Update changelog
  • Loading branch information
t-hamano authored and artemiomorales committed Jan 4, 2024
1 parent f3fd2c1 commit d4eebba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Bug Fix

- `PaletteEdit`: Consider digits when generating kebab-cased slug ([#56713](https://github.com/WordPress/gutenberg/pull/56713)).

### Experimental

- `TabPanel`: do not render hidden content ([#57046](https://github.com/WordPress/gutenberg/pull/57046)).
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/palette-edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* External dependencies
*/
import classnames from 'classnames';
import { paramCase as kebabCase } from 'change-case';

/**
* WordPress dependencies
Expand Down Expand Up @@ -49,6 +48,7 @@ import {
import { NavigableMenu } from '../navigable-container';
import { DEFAULT_GRADIENT } from '../custom-gradient-picker/constants';
import CustomGradientPicker from '../custom-gradient-picker';
import { kebabCase } from '../utils/strings';
import type {
Color,
ColorPickerPopoverProps,
Expand Down

0 comments on commit d4eebba

Please sign in to comment.