Breaking: Form and image partials carry speaking classes
Description
The frontend templates of this extension carried the classes of the theme they
were developed with - cards, list groups, form controls, spacing and display
utilities - next to block and element classes of the extension. They carry
speaking classes now, named after what an element is and shared by all academic
extensions: ace-, ace-, ace-, ace-, ace-,
ace- and so on. The outermost element of a plugin keeps the class of the
plugin. The classes of Bootstrap that a site builds on stay on purpose where
the templates render them: the grid classes row and col-*, the button
classes btn and btn-* and visually-. No other theme class is
rendered any more, and the extension ships no styles for the new classes.
The form field partials (Partials/) and the image partial
(Partials/) are shared by the other academic
extensions, so their classes appear in the new job form and in every image of
a list item or a page, those of EXT: included.
| Element | Before | After |
|---|---|---|
| Field wrapper | the class of the field type, is- on error | ace-, invalid on error, ace-, ace-, ace-, ace-, ace- or ace- |
| Field wrapper class of a type | form-, form-, form-, form-, form-, form- | see the line above |
| Label | form- | ace-, the required mark ace- |
| Field | form-, form- or form- | ace- and ace-, ace-, ace-, ace-, ace- or ace- |
| Field that failed validation | is- | invalid |
| Messages of a field | <div id="<element | <div id="<element, one ace- per message |
| Rich text area | rich- | ace- |
| Help text | form- | ace- |
| Errors of the form | alert alert- | ace- |
| Image | the class passed in | ace- followed by the class passed in, ace- on the picture |
| Caption | academic- with __, __ and __ | ace- with ace-, ace- and ace- |
Impact
- A site stylesheet that styles the form fields, their messages or the images through the classes of the column Before no longer matches.
- The rich text editor of the job form starts on the text areas with the
class
ace-. An override ofckeditor Form/that keptTextarea. html rich-shows a plain text area.text - A Bootstrap theme no longer shows the messages of a field next to it,
because it shows
invalid-only.feedback
Affected Installations
Every installation that renders a form of an academic extension, or an image through the shared image partial, and styles it through its classes.
Migration
- Move the selectors of the site stylesheet from the classes in the
column Before to those in the column After. A site that styled the
plugins through the classes of its Bootstrap theme alone gives the new
classes the look it wants, for example with
@extendin SCSS or with rules of its own. - A template override is compared with the shipped template of 3.0 and adopts its markup. An override keeps working as it is, but renders its own classes, and nothing in the extension relies on them.
- An override of a field partial that passes
errorpassesClass invalid, and an override ofForm/setsTextarea. html ace-on a rich text area.ckeditor - Flush the TYPO3 caches, so the Fluid template cache is rebuilt.