Align DetailsBackButton to Angular: left-aligned label, $button-height, tokens

This commit is contained in:
2026-04-20 05:14:11 +03:00
parent d960e469ed
commit 928d072577
@@ -1,29 +1,34 @@
@use "../../../../styles/colors" as colors;
@use "../../../../styles/variables" as vars;
// Angular renders the back link as a full-width solid button above the
// flights mini-list — same 285px column, blue fill, white text, 48px
// tall. Match that.
// tall, LEFT-aligned label (Angular's `.details-back .p-button-label`
// sets `text-align: left` and the chevron sits on the left with a 15px
// margin).
.details-back-button {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
justify-content: flex-start;
gap: vars.$space-m;
width: 100%;
min-height: 48px;
padding: 12px 16px;
background: #4a90e2;
color: #fff;
border-radius: 3px;
height: vars.$button-height;
padding: 0 vars.$space-l;
background: colors.$blue-light;
color: colors.$white;
border-radius: vars.$border-radius;
text-decoration: none;
font-size: 14px;
font-family: inherit;
cursor: pointer;
&:hover {
background: #3a7cc8;
color: #fff;
background: colors.$blue-light--hover;
color: colors.$white;
}
&__arrow {
display: inline-block;
font-size: 16px;
font-size: 13px;
}
}