Updating back button and funnel header to align when text wraps to more than one line

This commit is contained in:
Max 2021-12-21 14:57:23 -05:00
parent dcfd404abe
commit 47af82ee10
2 changed files with 10 additions and 8 deletions

View file

@ -1,18 +1,15 @@
<template>
<div class="current_car_info-text">
<div class="d-flex align-items-center justify-content-center">
<div class="d-flex align-items-center justify-content-center container-fluid">
<h2 class="text-center fs-5 d-block fw-normal mb-0">
<p class="m-0" v-if="hasBackButton">
{{ text }}
</p>
<span v-else>
<span>
{{ text }}
</span>
</h2>
<buttonBack
<buttonBack
v-if="hasBackButton"
:backButtonAction="backButtonAction"
/>
</h2>
</div>
</div>
</template>

View file

@ -2,7 +2,7 @@
<button
v-if="backButtonAction"
@click="backButtonAction"
class="back-button-wrapper d-flex p-3"
class="back-button-wrapper p-3"
:aria-label="backButtonAccessibleText"
>
<div class="button-back">
@ -35,6 +35,9 @@ export default {
background: transparent;
text-decoration: none;
border-bottom: none;
// Account for padding while still being inline with heading text (for cases where text wraps to 2 lines)
margin-bottom: -6px;
margin-top: -6px;
.button-back {
display: inline-flex;
@ -42,6 +45,8 @@ export default {
height: 18px;
width: 23px;
overflow: hidden;
// Account for padding while still being inline with heading text (for cases where text wraps to 2 lines)
margin-bottom: -2px;
.arrow-left {
position: absolute;
width: 18px;