Skip to content

Add theme handling to all pages#971

Open
bullseye555 wants to merge 1 commit into
rollerderby:devfrom
bullseye555:Theme_issues
Open

Add theme handling to all pages#971
bullseye555 wants to merge 1 commit into
rollerderby:devfrom
bullseye555:Theme_issues

Conversation

@bullseye555

Copy link
Copy Markdown
Contributor

Proposal to resolve #970

@frank-weinberg frank-weinberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There may be other instances of breaking compatibility. These are the ones I noticed on first reading.

Also: Can we please establish that (parts of) contributions that are generated by AI are flagged as such in the PR? That affects what to focus on in a review since there are some types of errors that are more likely for AI and others that are more likely for humans.
(This PR has some typical indicators of AI code and IIRC you have in the past stated that you're not a programmer, so I'm guessing it's AI. But I'd prefer to know instead of speculating.)

Comment thread html/json/core.js
return href;
}

let url;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

let breaks compatibility with older iPads

Comment thread html/json/core.js
$(function () {
_propagateThemeToLinks(document);

const themeLinkObserver = new MutationObserver(function (mutations) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

MutationObserver breaks compatibility with older iPads

Comment thread html/json/core.js

// Do not alter links to non URLs.
if (
trimmedHref.startsWith('#') ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

startsWith breaks compatibility with older iPads

@bullseye555

Copy link
Copy Markdown
Contributor Author

Thanks @frank-weinberg - confirming this is an AI update. I'll review further regarding backwards compatability for the older iPads

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.

[BUG] Not all links honour Theme selection

2 participants