Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 851992a

Browse files
committed
Merge remote-tracking branch 'origin/trunk' into release/7.0.0
2 parents 8be6b72 + b4c5457 commit 851992a

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ _None._
3030
3131
-->
3232

33-
## Unreleased
33+
## 6.4.0
3434

3535
### Breaking Changes
3636

3737
_None._
3838

3939
### New Features
4040

41-
_None._
41+
- Update button style and position on the prologue screen when `enableSiteCreation` and `enableSiteAddressLoginOnlyInPrologue` configs are enabled.
4242

4343
### Bug Fixes
4444

WordPressAuthenticator.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
F1DE08CB24F4266A007AE6B3 /* StoredCredentialsAuthenticator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StoredCredentialsAuthenticator.swift; sourceTree = "<group>"; };
503503
F5C817E62582B2F300BD5A3B /* UIPasteboard+Detect.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIPasteboard+Detect.swift"; sourceTree = "<group>"; };
504504
FF475C5056EB60A277696BA9 /* Pods-WordPressAuthenticatorTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WordPressAuthenticatorTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-WordPressAuthenticatorTests/Pods-WordPressAuthenticatorTests.release.xcconfig"; sourceTree = "<group>"; };
505-
FF629D9522393500004C4106 /* WordPressAuthenticator.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WordPressAuthenticator.podspec; sourceTree = "<group>"; };
505+
FF629D9522393500004C4106 /* WordPressAuthenticator.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WordPressAuthenticator.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
506506
/* End PBXFileReference section */
507507

508508
/* Begin PBXFrameworksBuildPhase section */

WordPressAuthenticator/Signin/LoginPrologueViewController.swift

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -273,26 +273,32 @@ class LoginPrologueViewController: LoginViewController {
273273
accessibilityIdentifier: "Prologue Continue Button",
274274
style: primaryButtonStyle,
275275
onTap: loginTapCallback())
276-
let enterYourSiteAddressButton = StackedButton(title: displayStrings.enterYourSiteAddressButtonTitle,
277-
isPrimary: configuration.enableSiteAddressLoginOnlyInPrologue,
278-
configureBodyFontForTitle: true,
279-
accessibilityIdentifier: "Prologue Self Hosted Button",
280-
style: secondaryButtonStyle,
281-
onTap: siteAddressTapCallback())
282-
let createSiteButton = StackedButton(title: displayStrings.siteCreationButtonTitle,
283-
isPrimary: false,
284-
configureBodyFontForTitle: true,
285-
accessibilityIdentifier: "Prologue Create Site Button",
286-
style: secondaryButtonStyle,
287-
onTap: simplifiedLoginSiteCreationCallback())
276+
let enterYourSiteAddressButton: StackedButton = {
277+
let isPrimary = configuration.enableSiteAddressLoginOnlyInPrologue && !configuration.enableSiteCreation
278+
return StackedButton(title: displayStrings.enterYourSiteAddressButtonTitle,
279+
isPrimary: isPrimary,
280+
configureBodyFontForTitle: true,
281+
accessibilityIdentifier: "Prologue Self Hosted Button",
282+
style: secondaryButtonStyle,
283+
onTap: siteAddressTapCallback())
284+
}()
285+
let createSiteButton: StackedButton = {
286+
let isPrimary = configuration.enableSiteAddressLoginOnlyInPrologue
287+
return StackedButton(title: displayStrings.siteCreationButtonTitle,
288+
isPrimary: isPrimary,
289+
configureBodyFontForTitle: true,
290+
accessibilityIdentifier: "Prologue Create Site Button",
291+
style: secondaryButtonStyle,
292+
onTap: simplifiedLoginSiteCreationCallback())
293+
}()
288294

289295
if configuration.enableWPComLoginOnlyInPrologue && configuration.enableSiteCreation {
290296
buttons = [continueWithWPButton,
291297
createSiteButton]
292298
} else if configuration.enableWPComLoginOnlyInPrologue {
293299
buttons = [continueWithWPButton]
294300
} else if configuration.enableSiteAddressLoginOnlyInPrologue && configuration.enableSiteCreation {
295-
buttons = [enterYourSiteAddressButton, createSiteButton]
301+
buttons = [createSiteButton, enterYourSiteAddressButton]
296302
} else if configuration.enableSiteAddressLoginOnlyInPrologue {
297303
buttons = [enterYourSiteAddressButton]
298304
} else if configuration.enableSiteCreation {

0 commit comments

Comments
 (0)