SLDS BEM double hyphen class name validation and migration
As per the Salesforce documentation, SLDS classes that include double hyphens were deprecated and replaced, and Summer '21 will remove support for these.
It would be excellent if IC2 included an inspection/intention pair to allow simple migration of any usages of these classes in LWC (and Aura plus SLDS in Visualforce) markup contexts.
Comments (4)
-
repo owner -
repo owner - changed status to resolved
Delivered in 2.1.5.9. Due to a limitation in the JetBrains CSS plugin, BEM notation names are not displayed in strikethrough in code completion lists, but they are highlighted as such once inserted, and the corresponding code inspection assists with migration to underscore notation.
-
repo owner - changed status to open
Reopening as I had to pull 2.1.5.9 until Spring '21 is available in all instances/orgs (see
#1822). I'll re-resolve when the Spring '21 update is again released. -
repo owner - changed status to resolved
Delivered in 2.1.6.3 (for real this time!).
- Log in to comment
This is done for the upcoming Spring '21 / API v51.0 build that is currently planned for release next Monday. It includes both a code inspection to identify usages of BEM name references and a code intention (that can be run en masse) to update those references to replace
--
with_
.