Skip to content

Commit

Permalink
fix: value for raw token opacity800 (#86)(#88)
Browse files Browse the repository at this point in the history
Closes #86 

Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
Co-authored-by: Julien Déramond <[email protected]>
Co-authored-by: Pierre-Yves Lapersonne <[email protected]>
  • Loading branch information
pylapp and julien-deramond authored Sep 12, 2024
1 parent 8e8e80d commit 8331d0d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- [Library] "OUDSThemesCommons" product has been renamed to "OUDS"
- [Library] Update value of opacity raw token "opacity800" from 0.88 to 0.80 ([#87](https://github.com/Orange-OpenSource/ouds-ios/issues/87))
- [Library] Add missing unit tests for opacity raw tokens

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion OUDS/Core/Tokens/RawTokens/Sources/OpacityRawTokens.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public enum OpacityRawTokens {
public static let opacity500: OpacityRawToken = 0.32
public static let opacity600: OpacityRawToken = 0.48
public static let opacity700: OpacityRawToken = 0.64
public static let opacity800: OpacityRawToken = 0.88
public static let opacity800: OpacityRawToken = 0.80
public static let opacity900: OpacityRawToken = 1
}
4 changes: 4 additions & 0 deletions OUDS/Core/Tokens/RawTokens/Tests/OpacityRawTokensTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ final class OpacityRawTokensTests: XCTestCase {
func testOpacityRawToken700LessThan800() throws {
XCTAssertLessThan(OpacityRawTokens.opacity700, OpacityRawTokens.opacity800)
}

func testOpacityRawToken800LessThan900() throws {
XCTAssertLessThan(OpacityRawTokens.opacity800, OpacityRawTokens.opacity900)
}
}

0 comments on commit 8331d0d

Please sign in to comment.