1
1
mirror of https://github.com/primer/css.git synced 2024-11-23 03:10:10 +03:00

Add .wb-break-word class to existing .break-word (#1555)

This commit is contained in:
Jon Rohan 2021-08-30 17:42:26 -07:00 committed by GitHub
parent aaedef1020
commit 4ae2174e33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@primer/css": minor
---
Add `.wb-break-word` class to existing `.break-word`

View File

@ -6,6 +6,14 @@ import fs from 'fs'
* array and a "message" string.
*/
const versionDeprecations = {
'17.6.1': [
{
selectors: [
'.break-word'
],
message: 'The .break-word class has been deprecated, use .wb-break-word instead.'
}
],
'17.0.0': [
{
variables: ['$h000-size', '$h000-size-mobile'],

View File

@ -208,7 +208,8 @@
.ws-normal { white-space: normal !important; }
/* Force long "words" to wrap if they exceed the width of the container */
.break-word {
.break-word, // deprecated
.wb-break-word {
word-break: break-word !important;
// this is for backwards compatibility with browsers that don't respect overflow-wrap
word-wrap: break-word !important;