Skip to content

Commit

Permalink
refactor: remove dimension semantic tokens (#308)
Browse files Browse the repository at this point in the history
Closes #308

Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com>
  • Loading branch information
pylapp committed Nov 26, 2024
1 parent fd61036 commit b9220c1
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 410 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Library] Improve Multiple-based objects for tokenator values integration ([#279](https://github.com/Orange-OpenSource/ouds-ios/issues/279))
- [Tool] Use `macos-15` runner for GitHub Actions builds ([#296](https://github.com/Orange-OpenSource/ouds-ios/issues/296))

### Removed

- [Library] All dimension semantic tokens ([#308](https://github.com/Orange-OpenSource/ouds-ios/issues/308))

### Fixed

- [DemoApp] Fix VoiceOver issue with element grouping in presentation tokens and update accessibility statement ([#212](https://github.com/Orange-OpenSource/ouds-ios/issues/285))
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,23 @@ extension OUDSTheme: SizeSemanticTokens {

// MARK: - Semantic token - Sizing - Icon with typography

@objc open var sizeIconWithLabelXLargeSizeShort: SizeSemanticToken { dimensionXS }
@objc open var sizeIconWithLabelXLargeSizeMedium: SizeSemanticToken { dimensionMD }
@objc open var sizeIconWithLabelXLargeSizeTall: SizeSemanticToken { dimensionLG }

@objc open var sizeIconWithLabelLargeSizeShorter: SizeSemanticToken { dimension4XS }
@objc open var sizeIconWithLabelLargeSizeShort: SizeSemanticToken { dimension3XS }
@objc open var sizeIconWithLabelLargeSizeMedium: SizeSemanticToken { dimension2XS }
@objc open var sizeIconWithLabelLargeSizeTall: SizeSemanticToken { dimensionXS }
@objc open var sizeIconWithLabelLargeSizeTaller: SizeSemanticToken { dimensionLG }

@objc open var sizeIconWithLabelMediumSizeShort: SizeSemanticToken { dimension5XS }
@objc open var sizeIconWithLabelMediumSizeMedium: SizeSemanticToken { dimension4XS }
@objc open var sizeIconWithLabelMediumSizeTall: SizeSemanticToken { dimension3XS }

@objc open var sizeIconWithLabelSmallSizeShort: SizeSemanticToken { dimension6XS }
@objc open var sizeIconWithLabelSmallSizeMedium: SizeSemanticToken { dimension5XS }
@objc open var sizeIconWithLabelSmallSizeTall: SizeSemanticToken { dimension4XS }
@objc open var sizeIconWithLabelXLargeSizeShort: SizeSemanticToken { DimensionRawTokens.dimension400 }
@objc open var sizeIconWithLabelXLargeSizeMedium: SizeSemanticToken { DimensionRawTokens.dimension500 }
@objc open var sizeIconWithLabelXLargeSizeTall: SizeSemanticToken { DimensionRawTokens.dimension550 }

@objc open var sizeIconWithLabelLargeSizeShorter: SizeSemanticToken { DimensionRawTokens.dimension250 }
@objc open var sizeIconWithLabelLargeSizeShort: SizeSemanticToken { DimensionRawTokens.dimension300 }
@objc open var sizeIconWithLabelLargeSizeMedium: SizeSemanticToken { DimensionRawTokens.dimension350 }
@objc open var sizeIconWithLabelLargeSizeTall: SizeSemanticToken { DimensionRawTokens.dimension400 }
@objc open var sizeIconWithLabelLargeSizeTaller: SizeSemanticToken { DimensionRawTokens.dimension550 }

@objc open var sizeIconWithLabelMediumSizeShort: SizeSemanticToken { DimensionRawTokens.dimension200 }
@objc open var sizeIconWithLabelMediumSizeMedium: SizeSemanticToken { DimensionRawTokens.dimension250 }
@objc open var sizeIconWithLabelMediumSizeTall: SizeSemanticToken { DimensionRawTokens.dimension300 }

@objc open var sizeIconWithLabelSmallSizeShort: SizeSemanticToken { DimensionRawTokens.dimension150 }
@objc open var sizeIconWithLabelSmallSizeMedium: SizeSemanticToken { DimensionRawTokens.dimension200 }
@objc open var sizeIconWithLabelSmallSizeTall: SizeSemanticToken { DimensionRawTokens.dimension250 }

// MARK: - Semantic token - Sizing - Icon decorative

Expand Down
Loading

0 comments on commit b9220c1

Please sign in to comment.