Clean changelog_unlreleased
This commit is contained in:
1 parent
ba1a833378
commit
171b1ee2bf
78 files changed
-1737
No files matched your search
@@ -1,22 +0,0 @@
|
||||
#### [IMPROVEMENT] Prefix-based multiline formatting for the `class` attribute (#7865 by @thorn0)
|
||||
|
||||
Formatting of HTML class names will now keep classes on one line until the line length limit is reached; at that point, consecutive classes with the same prefix will be grouped together on each line. For layout frameworks such as Bootstrap and Tailwind CSS, which add many classes to an element, this is important for readability and maintainability vs. the previous behavior (keeping all classes on one line) or e.g. putting each class on its own line.
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```html
|
||||
<!-- Prettier stable -->
|
||||
<div
|
||||
class="SomeComponent__heading-row d-flex flex-column flex-lg-row justify-content-start justify-content-lg-between align-items-start align-items-lg-center"
|
||||
></div>
|
||||
|
||||
<!-- Prettier main -->
|
||||
<div
|
||||
class="
|
||||
SomeComponent__heading-row
|
||||
d-flex
|
||||
flex-column flex-lg-row
|
||||
justify-content-start justify-content-lg-between
|
||||
align-items-start align-items-lg-center
|
||||
"
|
||||
></div>
|
||||
```
|
||||
Reference in new issue
Block a user