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

[Joy UI] Typography color is not defined by what is on the table #42779

Open
rhuanbarreto opened this issue Jun 27, 2024 · 0 comments
Open

[Joy UI] Typography color is not defined by what is on the table #42779

rhuanbarreto opened this issue Jun 27, 2024 · 0 comments
Assignees
Labels
component: Typography The React component. package: joy-ui Specific to @mui/joy status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page

Comments

@rhuanbarreto
Copy link
Contributor

rhuanbarreto commented Jun 27, 2024

Related page

https://mui.com/joy-ui/customization/theme-typography/

Kind of issue

Missing information

Issue description

According to the following lines of code:

...(ownerState.color && {
color: `var(--variant-plainColor, rgba(${
theme.vars.palette[ownerState.color]?.mainChannel
} / 1))`,

The color is defined by the main channel and not by the text or neutral pallet.

If this is a bug, I can open a PR with the fix.

Context

I was defining a custom theme for Joy UI and stumbled upon this.

Search keywords: typography, joy

@rhuanbarreto rhuanbarreto added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels Jun 27, 2024
@zannager zannager added the component: Typography The React component. label Jun 28, 2024
@zannager zannager added the package: joy-ui Specific to @mui/joy label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Typography The React component. package: joy-ui Specific to @mui/joy status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page
Projects
None yet
Development

No branches or pull requests

3 participants