Skip to content

Commit

Permalink
Merge pull request #558 from adevinta/487-spark-remove-outline-pressed
Browse files Browse the repository at this point in the history
[Tokens#487] Remove outlinePressed color token
  • Loading branch information
LouisBorleeAdevinta authored Oct 20, 2023
2 parents 078e2a7 + eeeae8b commit 8f1fda8
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public protocol ColorsStates {

var surfacePressed: any ColorToken { get }
var surfaceInversePressed: any ColorToken { get }
var outlinePressed: any ColorToken { get }

// MARK: - Feedback

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public struct ColorsStatesDefault: ColorsStates {
public let basicContainerPressed: any ColorToken
public let surfacePressed: any ColorToken
public let surfaceInversePressed: any ColorToken
public let outlinePressed: any ColorToken
public let successPressed: any ColorToken
public let successContainerPressed: any ColorToken
public let alertPressed: any ColorToken
Expand All @@ -50,7 +49,6 @@ public struct ColorsStatesDefault: ColorsStates {
basicContainerPressed: any ColorToken,
surfacePressed: any ColorToken,
surfaceInversePressed: any ColorToken,
outlinePressed: any ColorToken,
successPressed: any ColorToken,
successContainerPressed: any ColorToken,
alertPressed: any ColorToken,
Expand All @@ -74,7 +72,6 @@ public struct ColorsStatesDefault: ColorsStates {
self.basicContainerPressed = basicContainerPressed
self.surfacePressed = surfacePressed
self.surfaceInversePressed = surfaceInversePressed
self.outlinePressed = outlinePressed
self.successPressed = successPressed
self.successContainerPressed = successContainerPressed
self.alertPressed = alertPressed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ extension ColorsStatesGeneratedMock {

mock.underlyingSurfacePressed = ColorTokenGeneratedMock.random()
mock.underlyingSurfaceInversePressed = ColorTokenGeneratedMock.random()
mock.underlyingOutlinePressed = ColorTokenGeneratedMock.random()

mock.underlyingSuccessPressed = ColorTokenGeneratedMock.random()
mock.underlyingSuccessContainerPressed = ColorTokenGeneratedMock.random()
Expand Down
1 change: 0 additions & 1 deletion spark/Demo/Classes/Theme/PurpleContent/PurpleColors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ struct PurpleColors: Colors {
basicContainerPressed: ColorTokenDefault(named: "purple-basic-container-pressed", in: Bundle(for: ClassForBundle.self)),
surfacePressed: ColorTokenDefault(named: "purple-surfacePressed", in: Bundle(for: ClassForBundle.self)),
surfaceInversePressed: ColorTokenDefault(named: "purple-surfaceInversePressed", in: Bundle(for: ClassForBundle.self)),
outlinePressed: ColorTokenDefault(named: "purple-outlinePressed", in: Bundle(for: ClassForBundle.self)),
successPressed: ColorTokenDefault(named: "purple-successPressed", in: Bundle(for: ClassForBundle.self)),
successContainerPressed: ColorTokenDefault(named: "purple-successContainerPressed", in: Bundle(for: ClassForBundle.self)),
alertPressed: ColorTokenDefault(named: "purple-alertPressed", in: Bundle(for: ClassForBundle.self)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ struct ColorSectionStatesViewModel: ColorSectionViewModelable {
.init(name: "basicContainerPressed", colorToken: color.basicContainerPressed),
.init(name: "surfacePressed", colorToken: color.surfacePressed),
.init(name: "surfaceInversePressed", colorToken: color.surfaceInversePressed),
.init(name: "outlinePressed", colorToken: color.outlinePressed),
.init(name: "successPressed", colorToken: color.successPressed),
.init(name: "successContainerPressed", colorToken: color.successContainerPressed),
.init(name: "alertPressed", colorToken: color.alertPressed),
Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion spark/Sources/Theming/Content/SparkColors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ struct SparkColors: Colors {
basicContainerPressed: ColorTokenDefault(named: "basic-container-pressed", in: Bundle(for: ClassForBundle.self)),
surfacePressed: ColorTokenDefault(named: "surface-pressed", in: Bundle(for: ClassForBundle.self)),
surfaceInversePressed: ColorTokenDefault(named: "surface-inverse-pressed", in: Bundle(for: ClassForBundle.self)),
outlinePressed: ColorTokenDefault(named: "outline-pressed", in: Bundle(for: ClassForBundle.self)),
successPressed: ColorTokenDefault(named: "success-pressed", in: Bundle(for: ClassForBundle.self)),
successContainerPressed: ColorTokenDefault(named: "success-container-pressed", in: Bundle(for: ClassForBundle.self)),
alertPressed: ColorTokenDefault(named: "alert-pressed", in: Bundle(for: ClassForBundle.self)),
Expand Down

0 comments on commit 8f1fda8

Please sign in to comment.