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

Define comment tree post left-border colour in CSS #2890

Open
3 tasks done
travis-jeans opened this issue Jan 8, 2025 · 0 comments
Open
3 tasks done

Define comment tree post left-border colour in CSS #2890

travis-jeans opened this issue Jan 8, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@travis-jeans
Copy link

travis-jeans commented Jan 8, 2025

Requirements

  • This is a feature request and not a bug report. Otherwise, please create a new bug report instead.
  • Please check to see if this request (or a similar one) already exists.
  • It's a single feature. Please don't request multiple features in one issue.

Describe the feature you'd like

This is a related issue to #2889.

Currently the border-left colour of the comment tree is inserted as inline CSS with Javascript and defined in the following file /lemmy-ui/src/shared/components/comment/comment-node.tsx on line 386 border-left: 2px ${moreRepliesBorderColor} solid !important.

Border colour is defined on line 182-184: const moreRepliesBorderColor = this.props.node.depth ? colorList[this.props.node.depth % colorList.length] : colorList[0]; Colour can be changed by altering colorList values . Color list is defined in this file: /lemmy-ui/src/shared/utils/app/color-list.ts It is selecting around the colour wheel for different hues.

It would be helpful if the border colour attribute could be defined in CSS to allow those developing themes to change the colours, currently as inline CSS it cannot be changed with a CSS theme file.

Image description: Screenshot of a comment tree of dummy posts with levels of nesting where the colours of the left border change from red to purple.

comment-tree

@travis-jeans travis-jeans added the enhancement New feature or request label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant