Skip to content

Commit 8004ae1

Browse files
committed
fix(API-1944): Fix next step button centered text : Remove button html element
1 parent 6dc8df7 commit 8004ae1

File tree

4 files changed

+23
-45
lines changed

4 files changed

+23
-45
lines changed

components/components.css

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ button {
332332

333333
.next-steps-button {
334334
width: 261px;
335-
height: 94px;
335+
height: 89px;
336336
padding-top: 5px; /* Fix font not centered */
337337
display: flex;
338338
justify-content: center;
@@ -353,34 +353,23 @@ button {
353353
border: none;
354354
border-radius: 57px;
355355
}
356-
.next-steps-button-link {
357-
cursor: default;
358-
}
359-
.next-steps-button-link:hover {
360-
text-decoration: none;
361-
}
362356
.next-steps-button:hover {
363357
background-color: #2D366D;
358+
text-decoration: none;
359+
color: #F1F4F9;
364360
}
365361

366362
.next-steps-button-number {
367363
padding-top: 2px; /* Fix inability to align-item baseline */
368364
font-size: 63px;
369365
}
370-
.next-steps-button-smaller .next-steps-button-number {
371-
padding-top: 4px; /* Fix inability to align-item baseline */
372-
}
373-
374366
.next-steps-button-text {
375367
text-align: left;
376368
}
377369

378370
.next-steps-button-smaller {
379371
width: 177px;
380-
height: 68px;
381-
}
382-
383-
.next-steps-button-smaller {
372+
height: 65px;
384373
padding-top: 3px
385374
}
386375

components/components.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,26 +92,24 @@
9292
<div class="block-next-steps block-next-steps-main">
9393
<div class="block-next-steps-title">Next Step</div>
9494
<div class="block-next-steps-text">Now that you’ve gotten your App token, continue the journey with Step 2!</div>
95-
<a href="/" class="next-steps-button-link">
96-
<button class="next-steps-button next-steps-button-smaller">
97-
<div class="next-steps-button-number">2</div>
98-
<div class="next-steps-button-text">
99-
Develop<br>
100-
your App
101-
</div>
102-
</button>
95+
<a href="/" class="next-steps-button next-steps-button-smaller">
96+
<div class="next-steps-button-number">2</div>
97+
<div class="next-steps-button-text">
98+
Develop<br>
99+
your App
100+
</div>
103101
</a>
104102
</div>
105103

106104
<hr>
107105

108-
<button class="next-steps-button">
106+
<a href="/" class="next-steps-button">
109107
<div class="next-steps-button-number">1</div>
110108
<div class="next-steps-button-text">
111109
Get your<br>
112110
App token
113111
</div>
114-
</button>
112+
</a>
115113

116114
<hr>
117115

content/tutorials/guides/how-to-get-your-app-token.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,11 @@ You can use this token to call the Akeneo PIM REST API.
184184
<div class="block-next-steps block-next-steps-main">
185185
<div class="block-next-steps-title">Next Step</div>
186186
<div class="block-next-steps-text">Now that you’ve gotten your App token, continue the journey with Step 2!</div>
187-
<a href="/tutorials/how-to-retrieve-pim-structure.html" class="next-steps-button-link">
188-
<button class="next-steps-button next-steps-button-smaller">
189-
<div class="next-steps-button-number">2</div>
190-
<div class="next-steps-button-text">
191-
Develop<br>
192-
your App
193-
</div>
194-
</button>
187+
<a href="/tutorials/how-to-retrieve-pim-structure.html" class="next-steps-button next-steps-button-smaller">
188+
<div class="next-steps-button-number">2</div>
189+
<div class="next-steps-button-text">
190+
Develop<br>
191+
your App
192+
</div>
195193
</a>
196194
</div>

styles/guided-tutorial.less

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108

109109
.next-steps-button {
110110
width: 261px;
111-
height: 94px;
111+
height: 89px;
112112
padding-top: 5px; /* Fix font not centered */
113113
display: flex;
114114
justify-content: center;
@@ -129,31 +129,24 @@
129129
border: none;
130130
border-radius: 57px;
131131
}
132-
.next-steps-button-link {
133-
cursor: default;
134-
}
135-
.next-steps-button-link:hover {
136-
text-decoration: none;
137-
}
138132
.next-steps-button:hover {
139133
background-color: #2D366D;
134+
text-decoration: none;
135+
color: #F1F4F9;
140136
}
141137

142138
.next-steps-button-number {
143139
padding-top: 2px; /* Fix inability to align-item baseline */
144140
font-size: 63px;
145141
}
146-
.next-steps-button-smaller .next-steps-button-number {
147-
padding-top: 4px; /* Fix inability to align-item baseline */
148-
}
149-
150142
.next-steps-button-text {
151143
text-align: left;
152144
}
153145

154146
.next-steps-button-smaller {
155147
width: 177px;
156-
height: 68px;
148+
height: 65px;
149+
padding-top: 3px
157150
}
158151

159152
.next-steps-button-smaller {

0 commit comments

Comments
 (0)