Skip to content

fix: complete WIP accessibility fixes — default language init, frameborder, RTL support#227

Merged
DavidKRK merged 2 commits into
gh-pagesfrom
copilot/fix-buy-me-a-coffee-image-aspect-ratio-again
May 3, 2026
Merged

fix: complete WIP accessibility fixes — default language init, frameborder, RTL support#227
DavidKRK merged 2 commits into
gh-pagesfrom
copilot/fix-buy-me-a-coffee-image-aspect-ratio-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 3, 2026

Previous commit (1b82b7c) was merged as [WIP] — three accessibility/standards fixes were not applied to bio.html/bio.js and contact.html.

Changes

  • contact.html: Add missing switchLanguage('fr') call — page was rendering with no language content visible on load
  • bio.html: Remove deprecated frameborder="0" from Mixcloud iframe → style="border:0;" (matches event.html)
  • bio.js: Add switchLanguage('fr') default init + document.documentElement.lang/.dir updates for RTL accessibility
// bio.js — now consistent with all other pages
function switchLanguage(lang) {
    // ... activate content/button ...
    document.documentElement.lang = lang;
    document.documentElement.dir = (lang === 'ar') ? 'rtl' : 'ltr';
}
// ...
switchLanguage('fr'); // initialize default

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copilot AI linked an issue May 3, 2026 that may be closed by this pull request
6 tasks
…precated frameborder

Agent-Logs-Url: https://github.com/DavidKRK/DavidKRK.github.io/sessions/25e7ed8a-287e-4178-b956-93c9a51a5fd8

Co-authored-by: DavidKRK <136035295+DavidKRK@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Buy Me A Coffee image aspect ratio and improve accessibility fix: complete WIP accessibility fixes — default language init, frameborder, RTL support May 3, 2026
Copilot AI requested a review from DavidKRK May 3, 2026 18:11
@DavidKRK DavidKRK marked this pull request as ready for review May 3, 2026 18:14
Copilot AI review requested due to automatic review settings May 3, 2026 18:14
Copy link
Copy Markdown
Owner

@DavidKRK DavidKRK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parfait

@DavidKRK DavidKRK merged commit 6d7ce72 into gh-pages May 3, 2026
16 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR finishes a previously incomplete pass of language/accessibility cleanup on the localized static site pages. It mainly brings bio.html/assets/js/bio.js and contact.html in line with the site's language-switch initialization pattern and updates one deprecated iframe attribute.

Changes:

  • Initialize French as the default visible language on contact.html and the bio page script.
  • Update assets/js/bio.js to set html[lang] and dir when switching languages for RTL/accessibility support.
  • Replace the deprecated frameborder attribute on the bio page's Mixcloud iframe with CSS border styling.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
contact.html Adds default switchLanguage('fr') initialization so one language panel is visible on load.
bio.html Replaces deprecated iframe border markup with inline CSS styling.
assets/js/bio.js Adds document lang/dir updates and initializes the bio page to French on load.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread assets/js/bio.js
Comment on lines +19 to +21
// Update document language and text direction for accessibility and RTL support
document.documentElement.lang = lang;
document.documentElement.dir = (lang === 'ar') ? 'rtl' : 'ltr';
Comment thread assets/js/bio.js
});
});

switchLanguage('fr');
@DavidKRK DavidKRK deleted the copilot/fix-buy-me-a-coffee-image-aspect-ratio-again branch May 3, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🎵 New Music Update — 03/05/2026 20:03:36

3 participants