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] LinearProgress documentation example with MixBlendMode does not color text properly #40938

Closed
khgiddon opened this issue Feb 4, 2024 · 5 comments · Fixed by #41194
Closed
Assignees
Labels
component: progress This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy

Comments

@khgiddon
Copy link
Contributor

khgiddon commented Feb 4, 2024

Steps to reproduce

Link to live example: https://codesandbox.io/p/sandbox/old-framework-dkjcyh?file=%2Fsrc%2FDemo.js

This example is directly from the "Edit in Code Sandbox" link on the final LinearProgress example: https://mui.com/joy-ui/react-linear-progress/#common-examples

Current behavior

Currently the text is only light, instead of changing color based on progress bar progress (as in the documentation).

Expected behavior

The text should be dark until the progress overlaps it, at which point it becomes light. The intended behavior is working correctly on this page: https://mui.com/joy-ui/react-linear-progress/#common-examples

Context

I am trying to use LinearProgress with Typography in the bar that changes color, as in the example in the LinearProgress component documentation.

Your environment

Not including because this example is directly from the documentation.

Search keywords: linearprogress

@khgiddon khgiddon added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 4, 2024
@oliviertassinari oliviertassinari added the component: progress This is the name of the generic UI component, not the React module! label Feb 4, 2024
@adebiyial
Copy link
Contributor

@khgiddon my best bet is that the LinearProgress needs a background color of its own or an inherited one from a parent element or root element (body). Can you give it a background color like so:

<LinearProgress
  // ...
  sx={{
    // ...
    backgroundColor: "white"
  }}
>
  {/* ... */}
</LinearProgress>

@khgiddon
Copy link
Contributor Author

khgiddon commented Feb 5, 2024

@adebiyial
Copy link
Contributor

Awesome @khgiddon. Glad I could help.

@siriwatknp
Copy link
Member

@khgiddon Do you want to submit a fix to the docs?

@siriwatknp siriwatknp added docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 19, 2024
@khgiddon
Copy link
Contributor Author

@khgiddon Do you want to submit a fix to the docs?

Sure, @siriwatknp, I will.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: progress This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants