mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 17:40:12 +00:00
fa2faf563f
In Codex v0.7.0, the CdxButton's `type` prop changed. The `type` prop was renamed `weight` and will continue to accept the same values ('normal', 'quiet', and 'primary'). A new `type` prop was added that accepts the old types, plus native button types ('button', 'reset', and 'submit'). In a future release of Codex, the `type` prop will be removed altogether and the native type can be bound to the CdxButton via the `type` attribute. So, while the old values for `type` still work, we want to update the prop name in anticipation of the `type` prop's removal. For any new code moving forward, the `weight` prop should be used. This patch: - Updates the Button stories to change the `type` prop to `weight` - Updates Codex dev dependencies to v0.7.0 - Updates Storybook webpack config so it can process *.mjs files (Codex ES dist files now have this extension, see Ic29c891c8d7ac705d016aa6f91c5f63684d7d7c8) Bug: T312987 Change-Id: If98dad4769ed72900dbae579823a356669d6cf64 |
||
---|---|---|
.. | ||
.eslintrc.json | ||
ButtonsAndIcons.stories.js | ||
Footer.stories.data.js | ||
Footer.stories.js | ||
Header.stories.data.js | ||
Header.stories.js | ||
LanguageButton.stories.data.js | ||
LanguageButton.stories.js | ||
Logo.stories.data.js | ||
Logo.stories.js | ||
Menu.stories.data.js | ||
Menu.stories.js | ||
MenuDropdown.stories.data.js | ||
MenuDropdown.stories.js | ||
MenuPortal.stories.data.js | ||
MenuPortal.stories.js | ||
MenuTabs.stories.data.js | ||
MenuTabs.stories.js | ||
PageToolbar.stories.data.js | ||
PageToolbar.stories.js | ||
rawLoader.d.ts | ||
SearchBox.stories.data.js | ||
SearchBox.stories.js | ||
Sidebar.stories.data.js | ||
Sidebar.stories.js | ||
skin.less | ||
skin.stories.data.js | ||
skin.stories.js | ||
StickyHeader.stories.data.js | ||
StickyHeader.stories.js | ||
types.js | ||
UserLinks.stories.data.js | ||
UserLinks.stories.js | ||
utils.js |