Django cradmin 6.0.0 releasenotes¶
Warning
This version is not released yet.
What is new?¶
django_cradmin_styles:inputBEM block:input--small,input--xsmallandinput--xxsmall: Removed. Replaced byinput--width-<size>variants instead. This means that you need to refactor toinput--width-<small|xsmall|xxsmall>.input--half: Removed. If you need this, you probably want to use coloumnlayout instead.input--inline-xxsmall: Removed. Can be refactored toinput--inline input--width-xxsmall input--size-small.- New
--size-*variants. - New
--width-*variants.
selectBEM block:select--small: Removed. Was not in the styleguide/docs, so should not be in use many places.- New
--size-*variants. - New
--width-*variants.
buttonBEM block:- New
--form-size-*variants.
- New
searchinputBEM block:- New
--size-*variants. - New
--width-smallvariant.
- New
selectable-listBEM block:- New
--outlinedvariant forselectable-list__item. - Set
selectable-list__itemto text-align left. Makes it work with<button>too. - Set
selectable-list__itemcontentto display block. Makes it work with<span>too (which is needed when theselectable-list__itemis a<button>.
- New
page-section-mixin: Make the p:last-child check more explicit. Now it only matches if the<p>is the last child of the last.containerwithin the page-section.column-layout:- Add
column-layout__column--vertical-centervariant.
- Add
blocklist:- New styles for generic action sidebar. With these new styles, we no longer need
the
blocklist__movable-item-wrapperand related BEM elements, so they are deprecated.
- New styles for generic action sidebar. With these new styles, we no longer need
the
- Add new
helpBEM block. - Fixes and new css classes to make input, searchinput, select and button have the exact same height - for horizontal layouts.
- Update recommended NPM package versions.
Migrate from 5.2.x to 6.0.0¶
Migrate your form styles¶
You need to migrate the styles that have been removed/changed as described in the django_cradmin_styles section
in the _Whats new?_ section above.
Update NPM package versions for your theme(s)¶
You should update the package.json for your themes using django_cradmin_styles to:
"autoprefixer": "^8.4.1",
"cssnano": "^3.10.0",
"postcss-cli": "^5.0.0",
"postcss-scss": "^1.0.5",
"stylelint": "^9.2.0"