Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add anywhere value to overflow-wrap style #101

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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