From bde06743b191a1d2704b0092b966f9c788022248 Mon Sep 17 00:00:00 2001 From: Mark Teekman Date: Sat, 24 May 2025 11:44:18 +0200 Subject: [PATCH 1/4] chore: update dependencies in package.json for improved performance and compatibility --- package.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 3869948b..fe7a344d 100644 --- a/package.json +++ b/package.json @@ -33,28 +33,28 @@ "url": "https://github.com/incluud/accessible-astro-starter/issues" }, "devDependencies": { - "@astrojs/mdx": "^4.2.5", + "@astrojs/mdx": "^4.3.0", "@astrojs/partytown": "^2.1.4", - "@iconify-json/lucide": "^1.2.39", - "@typescript-eslint/eslint-plugin": "^8.31.0", - "@typescript-eslint/parser": "^8.31.0", - "astro": "^5.7.5", + "@iconify-json/lucide": "^1.2.44", + "@typescript-eslint/eslint-plugin": "^8.32.1", + "@typescript-eslint/parser": "^8.32.1", + "astro": "^5.8.0", "astro-compress": "^2.3.8", "astro-icon": "^1.1.5", - "eslint": "^9.0.0", + "eslint": "^9.27.0", "eslint-plugin-astro": "^1.3.1", "eslint-plugin-jsx-a11y": "^6.10.2", "prettier": "^3.5.3", "prettier-plugin-astro": "^0.14.1", "prettier-plugin-css-order": "^2.1.2", "prettier-plugin-tailwindcss": "^0.6.11", - "sanitize-html": "^2.16.0", - "sass": "^1.87.0", + "sanitize-html": "^2.17.0", + "sass": "^1.89.0", "svgo": "^3.3.2", - "tailwindcss": "^4.1.4" + "tailwindcss": "^4.1.7" }, "dependencies": { - "@tailwindcss/vite": "^4.1.4", + "@tailwindcss/vite": "^4.1.7", "accessible-astro-components": "^4.1.1" } } From 1363822dc2a19c63b90fcc32d7604fcc54fab693 Mon Sep 17 00:00:00 2001 From: Mark Teekman Date: Sat, 24 May 2025 12:05:28 +0200 Subject: [PATCH 2/4] feat: enhance navigation responsiveness and structure - Added a new breakpoint for navigation at 900px to improve layout adaptability. - Removed the checkMenuSize function to simplify the component logic and enhance performance. - Updated styles to ensure mobile menus are displayed by default, with desktop menus activated at the new breakpoint. - Improved alignment and spacing for menu items to enhance visual consistency and accessibility. #139 --- src/assets/scss/base/_breakpoint.scss | 1 + src/components/Navigation.astro | 76 +++++++++++---------------- src/components/ResponsiveToggle.astro | 2 - 3 files changed, 33 insertions(+), 46 deletions(-) diff --git a/src/assets/scss/base/_breakpoint.scss b/src/assets/scss/base/_breakpoint.scss index ddb1fa92..1fcbe78a 100644 --- a/src/assets/scss/base/_breakpoint.scss +++ b/src/assets/scss/base/_breakpoint.scss @@ -6,6 +6,7 @@ $breakpoints: ( 'l': 1024px, 'xl': 1280px, '2xl': 1536px, + 'nav': 900px, ) !default; @mixin breakpoint($breakpoint) { diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro index 3008eb7e..6c424d31 100644 --- a/src/components/Navigation.astro +++ b/src/components/Navigation.astro @@ -9,7 +9,7 @@ import Logo from './Logo.astro' */ --- -