Skip to content

Commit

Permalink
New: anywhere keyword for overflow-wrap style prop (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioPinheiro authored Nov 15, 2023
1 parent bd85604 commit b100969
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ trait OverflowWrap extends Normal { this: StyleProp[_] =>
/** Indicates that lines may only break at normal word break points. */
override lazy val normal: StyleSetter[_] = this := "normal"

/**
* Indicates that normally unbreakable words may be broken at any points
* if there are no otherwise-acceptable break points in the line.
* No hyphenation character is inserted at the break point. Soft wrap
* opportunities introduced by the word break are considered when calculating
* min-content intrinsic sizes.
*/
lazy val anywhere: StyleSetter[_] = this := "anywhere"

/**
* Indicates that normally unbreakable words may be broken at arbitrary
* points if there are no otherwise acceptable break points in the line.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2020,6 +2020,19 @@ object StyleTraitDefs {
docUrls = Nil,
),

StyleKeywordDef(
scalaName = "anywhere",
domName = "anywhere",
commentLines = List(
"Indicates that normally unbreakable words may be broken at any points",
"if there are no otherwise-acceptable break points in the line.",
"No hyphenation character is inserted at the break point. Soft wrap",
"opportunities introduced by the word break are considered when calculating",
"min-content intrinsic sizes.",
),
docUrls = Nil,
),

StyleKeywordDef(
scalaName = "breakWord",
domName = "break-word",
Expand Down

0 comments on commit b100969

Please sign in to comment.