-
Notifications
You must be signed in to change notification settings - Fork 12
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
Text Styles Customization #111
Comments
Thanks @gdfreitas great suggestion. Fonts have proved a little problematic and in the end the easiest way to include fonts in the react build in the end was to b64 encode them. Currently therefore there is only montserrat in there, as that is the RCPCH standard. If you want other fonts we would be very open to you adding them. In the earlier versions we gave more freedom to users to changes some styles and this was deprecated in 7.0 in favour with theming, though you can still create a custom theme. If the weight has not made it I am open to the idea of adding it? There is a TextStyle interface - are you interested in trying to implement something that works and send in a PR? |
Hi @eatyourpeas , I would love to contribute to, I'm actually already working on it locally on a branch. Could you review if I have the right permissions for pushing? I'm getting this error
|
Sure @gdfreitas I don't think you will have permissions to push direct to the repository. Might be best if it is ok for you to fork the repository and when you have some code you want us to look at, just send in a PR and we will look at it. Very grateful for your input and expertise - and your avatar will appear on our repo too :) The |
Leaving this item open because although this has resolved in part a wider discussion was had in the PR on whether fonts should be bundled with the library or whether implementers should be encouraged to implement them separately. |
Hi everyone,
I noticed two situations related to customizing styles, particularly with fonts:
Texts style property
style="bold"
does not seem to have any effect. Not sure, but I believe it tries to apply font-weight values to a font-style CSS property, which is not valid, perhaps we could have a separateweight
property for that.Would be nice to have API for customization of some texts:
delayedPubertyThresholdLabel.fontSize
centileLabel.fontSize
|fontSize.fontFamily
The text was updated successfully, but these errors were encountered: