fix: responsive foundation breakpoints, lang attribute, skip link, vw units#2906
Conversation
Ensure TableBackQR10 and TableBackQR11 are inserted in the correct position in the fallback _lang.odt template, matching the layout of all other language-specific templates. Closes OWASP#2133
… lang attribute, add skip-to-content link, fix how-to-play vw units
0d0e8ec to
c348059
Compare
|
@10-trix , @muhammad7865 , @immortal71 please take a look? |
|
once you guys are okay i will take it out of draft |
|
@Adarshkumar0509 fix: use dynamic lang and add skip link
|
|
@Adarshkumar0509 refactor: switch responsive rules to width-based breakpoints
|
|
chore: add missing EOF newlines
|
|
@Adarshkumar0509 here is my main concern this pr has so many changes in main component which makes it too risky!! |
|
The i18n and skip-link fixes are solid, but the PR should ideally include before/after screenshots for mobile portrait, mobile landscape, tablet, and small desktop because the responsive changes affect many core components. |
|
|
okay on it. |
|
Hey @immortal71, i tried to address all the points On screenshots looking identical i was also thinking this was expected. The old max-aspect-ratio bug only triggered in landscape mode (width > height). Portrait viewports were never broken. The regression I caught and fixed was at 768px landscape where my initial max-width: 768px was incorrectly showing the hamburger menu I changed it to max-width: 767px to fix this. Both sites now correctly show desktop nav at that size.. |
7c432bd to
4cc785f
Compare
|
@immortal71 @10-trix take a look buddy |
|
This is a solid PR and the approach looks correct for a Phase 1 foundation. Focusing on fixing the responsive behavior first, along with lang handling and accessibility, makes sense and aligns well with the project priorities. The breakpoint refactor is an important fix, and the 767px adjustment shows careful testing rather than just applying a standard value. The reviewer guidance is also clear and helpful, and the screenshots make it easier to validate the changes. |
|
hii @Mahaboobunnisa123 Thank you so much. |
|
Great work taking the initiative on Phase 1, @Adarshkumar0509. I pulled this branch locally to test. The switch from max-aspect-ratio to max-width: 767px was a smart catch, and the responsive layouts look great across mobile and tablet widths. However, I noticed an issue with the accessibility changes: The 'Skip to main content' link does not appear to be working correctly. As shown in your 'after' screenshot, pressing Tab causes the focus to jump straight to the downward arrow icon in the center (routing to /#top), rather than revealing a visual 'Skip to main content' text link at the top of the page. You might need to double-check the HTML placement or the CSS :focus state for that specific skip link. Also, I have one architectural recommendation: You mentioned the ODT template commit (0addcb9) was accidentally added. Because this PR touches 61 files focused on the UI foundation, I highly recommend dropping the ODT commit from this branch and opening it as a separate PR so it can be merged immediately. (Also, as mentioned in #2194, I'd love to help the team out by building an automated Lighthouse/WCAG CI check via GitHub Actions to catch accessibility regressions automatically. Let me know when you have a second to add me to the Slack group!) |
|
hii @ANNI160 yeah sure you can help us in code reviewing and many other big issues are there as well means you can get a overall experience, is this fine for you? yeah i will look on your suggestions |
|
Sounds perfect to me! Happy to help review and tackle some of those other issues. I'll keep an eye out for the Slack invite so we can coordinate. Thanks, @Adarshkumar0509 ! |
|
hii,@ANNI160 reviewing is much bigger task i love you accepted this and also there are some issues as well we will love if you also tackle them with us! |
|
Thanks, @Adarshkumar0509 ! I completely agree—reviewing is where we catch the really tricky edge cases. I'm excited to dive into the other open issues with the team as well. Just let me know once the Slack is set up so we can coordinate our next moves! |
|
hii @sydseter can you take a look at this? and suggest something |
|
@Adarshkumar0509 Thank you for your time. |
Responsive foundation fix for the issue: #2194
This PR addresses Phase 1. It is not a complete redesign just the foundational issues blocking correct responsive and i18n behavior.
Changes
Fixed hardcoded lang="en" in app.html now updates dynamically per language using %sveltekit.lang%
Replaced max-aspect-ratio: 1/1 with max-width: 767px across 43 source files
Replaced max-aspect-ratio: 1.5/1 with max-width: 1024px in card components
Added skip-to-content link see it fixes WCAG 2.4.1 keyboard navigation failure and Further skip link visual styling and SvelteKit first-Tab behaviour fix will be handled by @10-trix or @immortal71 in a follow-up PR.
Fixed how-to-play width from 59vw to min(59vw, 100%)
Fixed min-height: 22vw to min-height: auto in error container
Note: The ODT template fix (commit 0addcb9) is unrelated to responsive work and was included accidentally.
Reviewer Guidance
before:-

after:-

skip link proof

AI Tool Disclosure
[Chat Gpt][GPT-4.1][for review i used AI and also i was facing dificulty to understand certain things thats why i used it here]Affirmation