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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change dominant-baseline #205

Open
cyonder opened this issue Mar 10, 2022 · 1 comment
Open

Cannot change dominant-baseline #205

cyonder opened this issue Mar 10, 2022 · 1 comment

Comments

@cyonder
Copy link

cyonder commented Mar 10, 2022

馃悰 Bug report

Summary of issue

Cannot change dominant-baseline for text. I want to set it to center.

Reproducible example

      <CircularProgressbar
        text={`1/4`}
        styles={{
          text: {
            fill: 'red',
            'dominant-baseline': 'center'
          }
        }}
      />

fill works but dominant-baseline doesn't work. I also tried "dominantBaseline" instead of " 'dominant-baseline' "

Your environment

  • What browser version were you using?
    Chrome v98
  • What version of react-circular-progressbar are you using?
    ^2.0.4
@lalodsi
Copy link

lalodsi commented Jan 18, 2023

Try using middle instead center, these values are not based in align but in the baseline, that's why they are different.

For more info, check this link

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

No branches or pull requests

2 participants