0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 05:02:57 +01:00
wagtail/client
Sage Abdullah 31948fc9db Fix TableBlock resize target selector
Fixes #10427.

In d51ec00ce1, the target was changed from
'[data-field] > .handsontable' to '.handsontable', as the .handsontable
element is no longer a direct descendant of the [data-field] element.

However, this means that we're marking ALL elements with .handsontable
as resize targets, which is not ideal as pretty much all elements
generated by Handsontable have that class.

The original logic would presumably only select the outermost element
with the .handsontable class, which is equal to the element with the
foo-handsontable-container ID (we store this in the containerId
variable).

Frankly, removing this selector outright would also fix the issue. That
said, let's keep this selector in anyway, to match the logic in older
releases.
2023-05-15 14:39:06 +01:00
..
scss Prevent overlap between side panels resize grips and comments, preview 2023-05-02 13:06:03 +01:00
src Fix TableBlock resize target selector 2023-05-15 14:39:06 +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
extract-translatable-strings.js Ignore test files from extract-translatable-strings 2022-11-07 19:51:13 +10:00
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 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

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.