From 05c0cbfd6d5aed5d24faaf191ca11d8ccee8b566 Mon Sep 17 00:00:00 2001 From: Davinder Singh Date: Thu, 13 Jun 2024 15:09:53 +0100 Subject: [PATCH] Merge pull request #18883 from overleaf/jel-eyebrow-text [web] Add mixin for eyebrow headline GitOrigin-RevId: 992acd11e6c22c35499329bb53917a2b1ac79ac5 --- services/web/app/views/_mixins/eyebrow.pug | 5 +++++ services/web/app/views/subscriptions/plans-light-design.pug | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 services/web/app/views/_mixins/eyebrow.pug diff --git a/services/web/app/views/_mixins/eyebrow.pug b/services/web/app/views/_mixins/eyebrow.pug new file mode 100644 index 0000000000..6fede7d5f4 --- /dev/null +++ b/services/web/app/views/_mixins/eyebrow.pug @@ -0,0 +1,5 @@ +mixin eyebrow(text) + span.mono-text + span(aria-hidden) { + span #{text} + span(aria-hidden) } \ No newline at end of file diff --git a/services/web/app/views/subscriptions/plans-light-design.pug b/services/web/app/views/subscriptions/plans-light-design.pug index 5dd5634cb3..823634dceb 100644 --- a/services/web/app/views/subscriptions/plans-light-design.pug +++ b/services/web/app/views/subscriptions/plans-light-design.pug @@ -1,5 +1,6 @@ extends ../layout-website-redesign include ../_mixins/quote +include ../_mixins/eyebrow block vars - entrypoint = 'pages/user/subscription/plans-v2/plans-v2-main' @@ -28,10 +29,7 @@ block content .row .col-md-12 h1.text-centered - span.mono-text - span.aria-hidden { - span #{translate('plans_and_pricing_lowercase')} - span.aria-hidden } + +eyebrow(translate('plans_and_pricing_lowercase')) | #{translate('choose_your_plan')} include ./plans/_cards_controls_tables