Skip to content

0.5.0 Breaking Changes

Mathieu Lajoie edited this page May 3, 2019 · 20 revisions

Below is the list of all breaking changes paired to the 0.5.0 release. They are listed in no particular order and accompanied by a short explanation on why the change was necessary. Before and after examples are also provided for most of the changes.

Forms

  • FormLegendComponent is now a directive called FormLegendDirective.

    Developers should ideally have access to the legend element themselves to facilitate customization. There was also little to no point of having a component since it only adds a class to the element.

    <!-- BEFORE -->
    <fd-form-legend>Legend</fd-form-legend>
    
    <!-- NOW -->
    <legend fd-form-legend>Legend</legend>
  • FormLabelComponent is now a directive called FormLabelDirective.

    Implemented to allow developers direct access to the native label element. All the component used to do was add a class to the element, which is overkill for a component.

    <!-- BEFORE -->
    <fd-form-label>Label</fd-form-label>
    
    <!-- NOW -->
    <label fd-form-label>Label</label>

Panel

  • PanelTitleComponent is now a directive called PanelTitleDirective.

    This change was implemented to allow developers to customize the heading level of the title - for accessibility.

    <!-- BEFORE -->
    <fd-panel-title>Panel Title</fd-panel-title>
    
    <!-- NOW -->
    <h2 fd-panel-title>Panel Title</h2>
Clone this wiki locally