wagtail/client
sag᠎e aa96dda15a
Fix dismissible SubMenuItem not showing the number badge when there's a new item (#10107)
Previously, we rely on the fact that the SubMenuItem itself is a dismissible. So, we decide how to show/hide the number badge based on the value for the SubMenuItem's dismissible ID on the server. However, this means that if the user has dismissed the SubMenuItem and we add new dismissible child items within it (e.g. update the ID for the 'What's new in Wagtail version' child item), the number badge will not show up. This commit changes the logic to show/hide the number badge based on whether there are any undismissed items within the SubMenuItem and whether the it has been opened or not.
2023-04-28 15:58:57 +01:00
..
scss Negate top margins on .w-field_label, so that the h3 version looks the same as regular labels 2023-04-25 16:06:08 +01:00
src Fix dismissible SubMenuItem not showing the number badge when there's a new item (#10107) 2023-04-28 15:58:57 +01:00
storybook Fix Storybook rendering of body element 2023-04-19 13:38:23 +01:00
tests Fix Storybook stories intialisation broken due to script config dependencies 2023-02-15 22:52:49 +10:00
README.md
extract-translatable-strings.js Ignore test files from extract-translatable-strings 2022-11-07 19:51:13 +10:00
package-lock.json
tailwind.config.js Set up new color design tokens for light and dark themes 2023-04-19 13:38:23 +01:00
webpack.config.js Always set Sass output to expanded so CSS process is identical in dev and prod builds (#10347) 2023-04-18 15:32:05 +01:00

README.md

Wagtail client-side components

This library aims to give developers the ability to subclass and configure Wagtail's UI components.

Usage

npm install wagtail
import { Explorer } from 'wagtail';
// [...]
<Explorer />;

Development

# From the project root, start the webpack + styles compilation.
npm run start

You will also need:

Releases

The front-end is bundled at the same time as the Wagtail project. This package also aims to be available separately on npm as wagtail.