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

[#119] Remove tokens elevationZIndex and add elevationX200 #121

Merged
merged 1 commit into from
Sep 23, 2024
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased](https://github.com/Orange-OpenSource/ouds-ios/compare/0.2.0...develop)

### Added

- [Library] Add `elevationX200` raw token ([#119](https://github.com/Orange-OpenSource/ouds-ios/issues/119))

### Removed

- [Library] Remove raw tokens `elevationZIndex` ([#119](https://github.com/Orange-OpenSource/ouds-ios/issues/119))

## [0.2.0](https://github.com/Orange-OpenSource/ouds-ios/compare/0.1.0...0.2.0) - 2024-09-19

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,10 @@
/// Should be fully generated in the future.
extension ElevationRawTokens {

// MARK: Primitive token - Elevation - Z Index

public static let elevationZIndex0: ElevationRawToken = 0
public static let elevationZIndexMinus9999: ElevationRawToken = -9999
public static let elevationZIndex1000: ElevationRawToken = 1000
public static let elevationZIndex1010: ElevationRawToken = 1010
public static let elevationZIndex1020: ElevationRawToken = 1020
public static let elevationZIndex1030: ElevationRawToken = 1030
public static let elevationZIndex1035: ElevationRawToken = 1035
public static let elevationZIndex1038: ElevationRawToken = 1038
public static let elevationZIndex1040: ElevationRawToken = 1040
public static let elevationZIndex1045: ElevationRawToken = 1045
public static let elevationZIndex1050: ElevationRawToken = 1050
public static let elevationZIndex1060: ElevationRawToken = 1060
public static let elevationZIndex1070: ElevationRawToken = 1070
public static let elevationZIndex1080: ElevationRawToken = 1080
public static let elevationZIndex1090: ElevationRawToken = 1090

// MARK: Primitive token - Elevation - X

public static let elevationX0: ElevationRawToken = 0
public static let elevationX200: ElevationRawToken = 2

// MARK: Primitive token - Elevation - Y

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ final class ElevationRawTokensTests: XCTestCase {
XCTAssertTrue(radius == 6)
}

// MARK: - Primitive token - Elevation - X

func testElevationXRawToken0LessThanX200() throws {
XCTAssertLessThan(ElevationRawTokens.elevationX0, ElevationRawTokens.elevationX200)
}

// MARK: - Primitive token - Elevation - Y

func testElevationYRawToken0LessThanY100() throws {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@

import OUDSTokensRaw

/// Basically an elevation semantic token for Z Index is a raw token for elevation, with the same final type, to keep grammar clean and clear with design system grammar.
public typealias ElevationZIndexSemanticToken = ElevationRawToken

/// Basically an elevation semantic token for X offset is a raw token for elevation, with the same final type, to keep grammar clean and clear with design system grammar.
public typealias ElevationXSemanticToken = ElevationRawToken

Expand Down