0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 05:02:57 +01:00
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
extract-translatable-strings.js
package-lock.json
README.md
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

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.