FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #20160 from guardian/revert-20129-lg-mobile-sign-i… · devhttps/frontend@1e254a7 · GitHub

Commit 1e254a7

Browse files
Lau Skeeter
authored
Merge pull request guardian#20160 from guardian/revert-20129-lg-mobile-sign-in-link
Remove AB test: Show a sign in / register link on mobile browsers
2 parents 61b747c + 8cfa304 commit 1e254a7

6 files changed

Lines changed: 7 additions & 108 deletions

File tree

‎common/app/conf/switches/ABTestSwitches.scala‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,6 @@ trait ABTestSwitches {
1616
exposeClientSide = true
1717
)
1818

19-
Switch(
20-
ABTests,
21-
"ab-mobile-nav-sign-in",
22-
"This test will show a sign in link in the mobile nav",
23-
owners = Seq(Owner.withGithub("walaura")),
24-
safeState = Off,
25-
sellByDate = new LocalDate(2019, 6, 7),
26-
exposeClientSide = true
27-
)
28-
2919
Switch(
3020
ABTests,
3121
"ab-acquisitions-epic-liveblog",

‎common/app/views/fragments/nav/userAccountDropdown.scala.html‎

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,30 @@
33
@import conf.Configuration
44
@import views.support.DropdownMenus.accountDropdownMenu
55

6-
<div class="new-header__user-account-container">
6+
<div class="new-header__user-account-container hide-until-desktop">
77

8-
<a class="top-bar__item hide-until-desktop js-navigation-sign-in js-navigation-sign-in-top-nav"
8+
<a class="top-bar__item hide-until-desktop js-navigation-sign-in"
99
data-link-name="nav2 : topbar : signin"
1010
href="@Configuration.id.url/signin?INTCMP=DOTCOM_NEWHEADER_SIGNIN">
11-
<span class="hide-until-tablet">Sign in / Register</span>
12-
<span class="hide-from-tablet">
13-
@views.html.fragments.inlineSvg("profile", "icon", isPresentation = true)
14-
<span class="js-navigation-sign-in-top-nav-body"></span>
15-
</span>
11+
12+
Sign in / Register
1613
</a>
1714

18-
<button class="is-hidden dropdown-menu-fallback js-user-account-trigger hide-until-desktop"
15+
<button class="is-hidden dropdown-menu-fallback js-user-account-trigger"
1916
id="my-account-toggle"
2017
title="user account toggle"
2118
data-link-name="nav2 : topbar: my account"
2219
aria-expanded="false"
2320
aria-controls="my-account-dropdown"></button>
2421

25-
<label class="top-bar__item popup__toggle is-hidden js-navigation-account-actions hide-until-desktop"
22+
<label class="top-bar__item popup__toggle is-hidden js-navigation-account-actions"
2623
for="my-account-toggle"
2724
data-link-name="nav2 : topbar: my account">
2825

2926
My account
3027
</label>
3128

32-
<ul class="dropdown-menu dropdown-menu--light js-user-account-dropdown-menu hide-until-desktop"
29+
<ul class="dropdown-menu dropdown-menu--light js-user-account-dropdown-menu"
3330
id="my-account-dropdown"
3431
aria-hidden="true">
3532

‎static/src/javascripts/projects/common/modules/experiments/ab-tests.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ import { getTest as getAcquisitionTest } from 'common/modules/experiments/acquis
55
import { commercialPrebidSafeframe } from 'common/modules/experiments/tests/commercial-prebid-safeframe.js';
66
import { commercialAdVerification } from 'common/modules/experiments/tests/commercial-ad-verification.js';
77
import { FootballWeeklyTreatVsContainer } from 'common/modules/experiments/tests/football-weekly-treat-vs-container';
8-
import { mobileNavSignIn } from './tests/mobile-nav-sign-in';
98

109
export const TESTS: $ReadOnlyArray<ABTest> = [
1110
getAcquisitionTest(),
12-
mobileNavSignIn,
1311
commercialPrebidSafeframe,
1412
commercialAdVerification,
1513
FootballWeeklyTreatVsContainer,

‎static/src/javascripts/projects/common/modules/experiments/tests/mobile-nav-sign-in.js‎

Lines changed: 0 additions & 61 deletions
This file was deleted.

‎static/src/stylesheets/base/_helpers.scss‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
}
1515
}
1616

17-
.hide-until-mobile-medium {
18-
@include mq($until: mobileMedium) {
19-
display: none !important;
20-
}
21-
}
22-
2317
.hide-until-mobile-landscape {
2418
@include mq($until: mobileLandscape) {
2519
display: none !important;
@@ -52,12 +46,6 @@
5246

5347
// Hide from
5448

55-
.hide-from-mobile-medium {
56-
@include mq(mobileMedium) {
57-
display: none !important;
58-
}
59-
}
60-
6149
.hide-from-mobile-landscape {
6250
@include mq(mobileLandscape) {
6351
display: none !important;

‎static/src/stylesheets/layout/nav/_top-bar.scss‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,6 @@
2323
color: $brightness-20;
2424
}
2525

26-
.inline-icon {
27-
fill: $brightness-7;
28-
display: inline-block;
29-
vertical-align: middle;
30-
/*
31-
this visually aligns the profile icon with the Support circle,
32-
part of ab-mobile-nav-sign-in
33-
*/
34-
&.inline-profile {
35-
margin-left: -4px;
36-
}
37-
}
38-
3926
@include mq(tablet) {
4027
font-size: 14px;
4128
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL