Global definition for hyphens #1617
Closed
yceballost
started this conversation in
Proposals
Replies: 1 comment
-
From an offline discussion:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goal
Keep consistency between all texts and components of Mística
Context
Info about hyphens
Text in Mística have the property to break words with hyphens. Hyphens is used to join words or parts of words when:
Avoiding excessive white spaces: If a word is not split and there is sufficient space at the end of a line, it could result in large white spaces between words instead of a uniform distribution. Splitting a word allows for a more efficient utilization of that space.
Maintaining visual consistency: Hyphenating words helps maintain visual consistency by preventing a line from having only a few words while the next one is completely filled. This facilitates readability and enhances the overall presentation of the text.
Hyphen definition in Mística
If the word does not fit in the width of the container, the hyphen appears
Current hyphen usage in Mística
<Text>
components in Mística have de property to use or not hyphens manually usinghyphens="auto"
/"manual"
Impact
Consistency in the usage of hyphen
Discussion Questions
In my opinion, the hyphen behavior should be a global behavior, not only in certain components
Additional considerations
The definition explained in the context section has some incompatibility issues with some versions of browsers. In Firefox, it does not work in any version
Do you have a visual proposal?
https://tinyurl.com/ypjcmynb
Beta Was this translation helpful? Give feedback.
All reactions