Skip to content

Commit

Permalink
fix(Button): Change cornerCurve from continuous to circular (#307)
Browse files Browse the repository at this point in the history
* fix(Button): Change cornerCurve from continuous to circular

* feat(Button): Updated with remaining telefonica style tests
  • Loading branch information
WanaldinoTelefonica authored Oct 13, 2023
1 parent 47302b6 commit 26a73b3
Show file tree
Hide file tree
Showing 584 changed files with 14 additions and 15 deletions.
1 change: 0 additions & 1 deletion Sources/Mistica/Components/Button/Button.swift
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ private extension Button {
}

func setUpView() {
layer.cornerCurve = .continuous
layer.borderWidth = Constants.borderWidth
isAccessibilityElement = true
updateTraits()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,33 +35,33 @@ private struct CornerRadiusModifier: ViewModifier {
.overlay(Capsule().stroke(borderColor, lineWidth: lineWidth))
case .button:
content
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.button, style: .continuous))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.button, style: .continuous).stroke(borderColor, lineWidth: lineWidth))
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.button))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.button).stroke(borderColor, lineWidth: lineWidth))

case .checkbox:
content
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.checkbox, style: .continuous))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.checkbox, style: .continuous).stroke(borderColor, lineWidth: lineWidth))
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.checkbox))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.checkbox).stroke(borderColor, lineWidth: lineWidth))
case .container:
content
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.container, style: .continuous))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.container, style: .continuous).stroke(borderColor, lineWidth: lineWidth))
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.container))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.container).stroke(borderColor, lineWidth: lineWidth))
case .input:
content
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.input, style: .continuous))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.input, style: .continuous).stroke(borderColor, lineWidth: lineWidth))
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.input))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.input).stroke(borderColor, lineWidth: lineWidth))
case .legacyDisplay:
content
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.legacyDisplay, style: .continuous))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.legacyDisplay, style: .continuous).stroke(borderColor, lineWidth: lineWidth))
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.legacyDisplay))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.legacyDisplay).stroke(borderColor, lineWidth: lineWidth))
case .popup:
content
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.popup, style: .continuous))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.popup, style: .continuous).stroke(borderColor, lineWidth: lineWidth))
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.popup))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.popup).stroke(borderColor, lineWidth: lineWidth))
case .sheet:
content
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.sheet, style: .continuous))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.sheet, style: .continuous).stroke(borderColor, lineWidth: lineWidth))
.clipShape(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.sheet))
.overlay(RoundedRectangle(cornerRadius: MisticaConfig.currentCornerRadius.sheet).stroke(borderColor, lineWidth: lineWidth))
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 26a73b3

Please sign in to comment.