mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-13 17:57:06 +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 |
||
---|---|---|
.. | ||
common.less | ||
config.js | ||
icons.less | ||
webpack.config.js |