-
The problemWe don't currently include horizontal text-alignment values in Spectrum Tokens. The proposalWe're considering adding some for cases like this in the table component: The only potential complication comes from right-to-left and left-to-right language switching. CSS supports logical properties ---
"$schema": https://json-schema.org/draft/2020-12/schema
"$id": https://opensource.adobe.com/spectrum-tokens/schemas/token-types/text-align.json
title: Text align
description: Sets whether text should be aligned `start`, `center`, or `end`
type: object
allOf:
- "$ref": https://opensource.adobe.com/spectrum-tokens/schemas/token-types/token.json
properties:
"$schema":
const: https://opensource.adobe.com/spectrum-tokens/schemas/token-types/text-align.json
value:
type: string
enum:
- start
- center
- end
default: start
component: {}
private: {}
deprecated: {}
deprecated_comment: {}
uuid: {}Alternatives consideredWe've considered the more universal QuestionsWhat about non-web implementations, would logical options cause issues for text-alignment? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
we've opted for a more generic alignment token type schema that could be used for vertical, horizontal, or text alignment #840 |
Beta Was this translation helpful? Give feedback.

we've opted for a more generic alignment token type schema that could be used for vertical, horizontal, or text alignment #840