Breaking: Study plan templates 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. The extension ships no stylesheet, see
Breaking: The study plan ships no stylesheet.
The script finds the parts of the plan by their
data-
attributes, which are unchanged, and writes highlighted and open as
before.
| Element | Before | After |
|---|---|---|
| Content element | academic- | academic- |
| Filter | a
<nav>
without class around <ul class="filter"> | <nav class="ace- with an ace- of ace- entries, the buttons ace-, the toggle ace- |
| Semesters | <ul class="semesters row"> | <div class="ace- around a <div role="list" class="row"> |
| Semester | <li class="col"> | <div role="listitem" class="ace- |
| Labels of semesters and modules | <h3 class="h6"> and <h4 class="h6"> | <span class="ace- for both |
| Header of a semester | header with wrapper, credits small and note small text- | ace- with ace-, ace-, ace-, ace- and ace- |
| Modules | a list without class, module entries, clickable on a module with a dialog | ace- with ace- entries, ace- on a module with a dialog |
| Parts of a module | credits small, note small text-, modal-, visually- | ace-, ace-, ace-, visually- |
| Dialog | wrapper, the module name in a <span class="h6">, credits small, note small text- | ace- with <header class="ace-, the module name in a <span class="ace-, ace-, ace-, ace-, ace-, the close button ace- |
| Footer | the text without an element of its own | <div class="ce- |
Impact
- A site stylesheet that styles the plan through the classes of the column Before no longer matches.
- The collapsed filter is hidden by the rule
.ace-. The site stylesheet brings that rule.filter . ace- list [hidden] { display: none } - An override of a study plan partial keeps working with the script as long as it keeps the data attributes.
Affected Installations
Every installation that renders the study plan content element.
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.
- Flush the TYPO3 caches, so the Fluid template cache is rebuilt.