Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: missing semantic css classes and html elements #1583

Merged
merged 4 commits into from Jun 26, 2023

Conversation

0xAnansi
Copy link
Contributor

@0xAnansi 0xAnansi commented Jun 25, 2023

Now all pages have a main and aside element when a sidebar is present to facilitate custom theming. This does not impact the default behavior of the front.

Note: removed ref={this.mainContentRef} from the div element since it was flagged as an error, can't see any impact but I don't know what it does in the first place.

Now all pages have a main and aside element when a sidebar is present to facilitate custom theming. This does not impact the default behavior of the front.
@@ -22,7 +22,7 @@ import {
} from "@utils/helpers";
import type { QueryParams } from "@utils/types";
import { RouteDataResponse } from "@utils/types";
import { Component, linkEvent } from "inferno";
import { Component, RefObject, createRef, linkEvent } from "inferno";
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why this additional ref stuff is necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was set in the app component for this page, so had to move it in this component to be able to link it in the "main" element that was moved from app to community.
This can only be set on main elements for some reason, or it will be considered an error.

This is used for the "skip to main content" feature.

@0xAnansi 0xAnansi requested a review from jsit June 26, 2023 12:16
@dessalines dessalines merged commit cb6ab15 into LemmyNet:main Jun 26, 2023
1 check was pending
jsit added a commit to jsit/lemmy-ui that referenced this pull request Jun 26, 2023
* lemmy/main:
  fix vote button alignment
  Fix feedback on banning an unbanning
  remove icon (LemmyNet#1618)
  Indicate valid and invalid fields in signup form (LemmyNet#1450)
  capitalize button (LemmyNet#1616)
  Move password reset form to separate route, view (LemmyNet#1390)
  feat(UI): Reduce base font size (LemmyNet#1591)
  Fix: missing semantic css classes and html elements (LemmyNet#1583)
jsit added a commit to jsit/lemmy-ui that referenced this pull request Jun 26, 2023
* Fix: missing semantic css classes and html elements.

Now all pages have a main and aside element when a sidebar is present to facilitate custom theming. This does not impact the default behavior of the front.

* Fix: re-added communityref on main element

---------

Co-authored-by: 0xAnansi <0xAnansi@omageni.com>
Co-authored-by: Jay Sitter <jsit@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
jsit added a commit to jsit/lemmy-ui that referenced this pull request Jun 27, 2023
* Fix: missing semantic css classes and html elements.

Now all pages have a main and aside element when a sidebar is present to facilitate custom theming. This does not impact the default behavior of the front.

* Fix: re-added communityref on main element

---------

Co-authored-by: 0xAnansi <0xAnansi@omageni.com>
Co-authored-by: Jay Sitter <jsit@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
jsit added a commit to jsit/lemmy-ui that referenced this pull request Jun 27, 2023
* lemmy/main:
  fix vote button alignment
  partially revert change
  Fix feedback on banning an unbanning
  remove icon (LemmyNet#1618)
  Indicate valid and invalid fields in signup form (LemmyNet#1450)
  capitalize button (LemmyNet#1616)
  Move password reset form to separate route, view (LemmyNet#1390)
  feat(UI): Reduce base font size (LemmyNet#1591)
  Fix: missing semantic css classes and html elements (LemmyNet#1583)
  remove hook entirely
  chore(DX): Add prettier to eslint config for use with editors
  fix bug collapsing previews when voting
  fix: Remove unnecessary string interpolations
  fix: Remove unnecessary class
  fix: Remove unnecessary classes
  fix: Restore removed classes
  fix: Remove wrapping li's
  fix: Remove extraneous classes
  fix: Move things back to where they were
  chore: Separate post mod buttons into functions
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.

None yet

3 participants