You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create text utility classes, u-text--centered, right, error, primary, grayscales
if this ticket is completed before color system, exclude color utility classes and add to that issue's description
seek and destroy (replace) all explicit text-related styling & classes
create typography demo route /demo/typography, link in docs / README
Overview
Presently, there are no rules or guidelines for typography on Teloscan. As a result, the text styles are highly fragmented and inconsistent across components (making consistency across Telos applications impossible as well). Additionally, all new features/pages/components take unnecessarily long to create, as the style for every text element must be re-implemented or copied from another component (further increasing inconsistency). Usability decreases with inconsistency of typography as well, as a type design language directs the user's attention and greatly influences their understanding of elements onscreen. Regardless of application size, a small but well-considered system of a couple typefaces and type styles is sufficient to cover all use cases.
For the sake of both development time and user experience, Teloscan (and eventually, all Telos apps) should adhere to a single typography system
Acceptance criteria
reset styles should be added for all text elements
a typography system should be be implemented, consisting of:
two typefaces, a serif and a sans-serif (existing fonts may be used, they do not need to be new)
styles (font-family, font-size, font-weight, letter-spacing, line-height) for each of the following text elements:
header (h1)
subheader (h3)
body
label (h5)
links (not other elements, eg. images)
hover state
focus state
active state
a new Issue should be created to audit existing style usage and replace with new styles
Technical considerations
all styles added for this Issue should be namespaced, sandboxed, or otherwise prevented from affecting site styles until such a time as the application is moved to the new system; styles added should not contribute to overall style fragmentation
styles/mixins which already exist (eg. u-text--center) should be copied to the new files so they remain after future refactoring is complete
reset styles should be placed in a global sass partial called _reset.scss rather than in /typography, and should include:
because many non-text elements, eg. <img> are wrapped in an anchor, link style selectors should be written to only target strictly text elements; it should be indicated in the typography docs that some text links may need the link class applied to them, eg. <router-link class="o-text--link">
Tasks
The text was updated successfully, but these errors were encountered:
strong
andem
@mixin header-text
u-text--
centered
,right
,error
,primary
, grayscales/demo/typography
, link in docs / READMEOverview
Presently, there are no rules or guidelines for typography on Teloscan. As a result, the text styles are highly fragmented and inconsistent across components (making consistency across Telos applications impossible as well). Additionally, all new features/pages/components take unnecessarily long to create, as the style for every text element must be re-implemented or copied from another component (further increasing inconsistency). Usability decreases with inconsistency of typography as well, as a type design language directs the user's attention and greatly influences their understanding of elements onscreen. Regardless of application size, a small but well-considered system of a couple typefaces and type styles is sufficient to cover all use cases.
For the sake of both development time and user experience, Teloscan (and eventually, all Telos apps) should adhere to a single typography system
Acceptance criteria
reset
styles should be added for all text elementsfont-family
,font-size
,font-weight
,letter-spacing
,line-height
) for each of the following text elements:Technical considerations
u-text--center
) should be copied to the new files so they remain after future refactoring is complete_reset.scss
rather than in/typography
, and should include:<img>
are wrapped in an anchor, link style selectors should be written to only target strictly text elements; it should be indicated in the typography docs that some text links may need the link class applied to them, eg.<router-link class="o-text--link">
Tasks
The text was updated successfully, but these errors were encountered: