Skip to content

Commit

Permalink
[CHUX-687] More tweaks for new navigation (#1987)
Browse files Browse the repository at this point in the history
* CHUX-687:chore:more tweaks for navigation

* CHUX-687:chore:update snaps

* 2.8.12
  • Loading branch information
stavros-tomas authored Jun 19, 2024
1 parent cbb44f6 commit ca0deae
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ebury/chameleon-components",
"version": "2.8.11",
"version": "2.8.12",
"main": "src/main.ts",
"sideEffects": false,
"author": "Ebury Team (http://labs.ebury.rocks/)",
Expand Down
4 changes: 3 additions & 1 deletion src/components/ec-navigation-link/ec-navigation-link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ withDefaults(defineProps<NavigationLinkProps>(), {
@import '../../styles/tools/transitions.css';
.ec-navigation-link {
@apply tw-small-text;
@apply tw-h6;
@apply tw-py-12 tw-px-24;
@apply tw-flex tw-items-center;
@apply tw-no-underline;
Expand Down Expand Up @@ -163,9 +163,11 @@ withDefaults(defineProps<NavigationLinkProps>(), {
}
&--light-mode {
@apply tw-small-text;
@apply tw-px-0 tw-py-16;
@apply tw-text-gray-3;
@apply tw-bg-transparent;
@apply tw-capitalize;
&:hover {
@apply tw-text-gray-2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ exports[`EcNavigation > mobile navigation > should close the mobile navigation w
>
<img
alt="Test Brand"
class="ec-navigation__branding-logo ec-navigation__branding-logo--responsive"
class="ec-navigation__branding-logo"
data-test="ec-navigation__branding-logo"
src="/img/my-brand.png"
/>
Expand Down Expand Up @@ -135,7 +135,7 @@ exports[`EcNavigation > mobile navigation > should close the mobile navigation w
>
<img
alt="Test Brand"
class="ec-navigation__branding-logo ec-navigation__branding-logo--responsive"
class="ec-navigation__branding-logo"
data-test="ec-navigation__branding-logo"
src="/img/my-brand.png"
/>
Expand Down Expand Up @@ -224,7 +224,7 @@ exports[`EcNavigation > mobile navigation > should show render the mobile naviga
>
<img
alt="Test Brand"
class="ec-navigation__branding-logo ec-navigation__branding-logo--responsive"
class="ec-navigation__branding-logo"
data-test="ec-navigation__branding-logo"
src="/img/my-brand.png"
/>
Expand Down Expand Up @@ -310,7 +310,7 @@ exports[`EcNavigation > should apply light mode CSS classes if "isInLightMode" p
>
<img
alt="Test Brand"
class="ec-navigation__branding-logo"
class="ec-navigation__branding-logo ec-navigation__branding-logo--light-mode"
data-test="ec-navigation__branding-logo"
src="/img/my-brand.png"
/>
Expand Down
22 changes: 14 additions & 8 deletions src/components/ec-navigation/ec-navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
>
<img
class="ec-navigation__branding-logo"
:class="{ 'ec-navigation__branding-logo--responsive': isResponsive }"
:class="{ 'ec-navigation__branding-logo--light-mode': isInLightMode }"
:src="branding.logo"
:alt="branding.name"
data-test="ec-navigation__branding-logo"
Expand Down Expand Up @@ -168,6 +168,10 @@ function onNavigationLinkClicked() {
@apply tw-mt-16 tw-mb-24;
}
&__call-to-action {
@apply tw-mt-16 tw-mb-8;
}
&--light-mode {
@apply tw-bg-gray-7;
@apply tw-text-gray-3;
Expand Down Expand Up @@ -213,16 +217,18 @@ function onNavigationLinkClicked() {
@apply tw-py-0 tw-px-24;
@apply tw-mt-24 tw-mb-8 tw-mx-0;
@apply tw-text-center;
}
&__branding--light-mode {
@apply tw-m-0 tw-p-0;
@apply tw-text-left;
&--light-mode {
@apply tw-m-0 tw-p-0;
@apply tw-text-left;
}
}
&__branding-logo {
@apply tw-align-top;
@apply tw-w-88;
&--light-mode {
@apply tw-align-top;
@apply tw-w-88;
}
}
&__separator {
Expand All @@ -239,7 +245,7 @@ function onNavigationLinkClicked() {
&__copyright {
@apply tw-caption-text;
@apply tw-whitespace-nowrap;
@apply tw-py-0 tw-px-24;
@apply tw-px-24 tw-pt-8 tw-pb-16;
@apply tw-text-center;
}
}
Expand Down

0 comments on commit ca0deae

Please sign in to comment.