Skip to content

Commit

Permalink
Merge pull request #874 from sarjona/mixins
Browse files Browse the repository at this point in the history
[docs] Dev update Bootstrap mixins refactor - MDL-80395
  • Loading branch information
sarjona authored Mar 1, 2024
2 parents 751b291 + 5922336 commit e9541a0
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions docs/devupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,51 @@ The `.media` component has been replaced with utility classes.

</ValidExample>

### Mixins

The following previously deprecated mixins will be dropped in BS5, so they can be refactored:

- hover, hover-focus, plain-hover-focus and hover-focus-active
- float-left, float-right and float-none
- nav-divider
- img-retina
- text-hide
- invisible
- form-control-focus
- text-emphasis-variant
- size
- make-container-max-widths
- g-variant and bg-gradient-variant

<InvalidExample title="Don't">

```css
.collapse-list-item {
padding: $collapse-list-item-padding-y $collapse-list-item-padding-x;
@include hover-focus() {
background-color: $collapse-list-item-hover-bg;
border-color: $collapse-list-item-hover-border;
}
}
```

</InvalidExample>

<ValidExample title="Do">

```css
.collapse-list-item {
padding: $collapse-list-item-padding-y $collapse-list-item-padding-x;
&:hover,
&:focus {
background-color: $collapse-list-item-hover-bg;
border-color: $collapse-list-item-hover-border;
}
}
```

</ValidExample>

## New course section page

<Since version="4.4" issueNumber="MDL-79986" />
Expand Down

0 comments on commit e9541a0

Please sign in to comment.