question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow styling of text in Button and modification of Icon size

See original GitHub issue

Describe the feature

At the moment the text styling in Button is hardcoded with a combination of styles. label and textStyle neither of which are accessible outside the component.

Also the size parameter passed to Icon is fixed to 16 and cannot be changed.

Motivation

I wish to use a button as a larger styling component and in order to make the appearance as I wish I would need to use a larger font and icon

Related Issues

N/A

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
chriswiesnercommented, May 29, 2020

+1 for a iconSize prop

6reactions
CesarGomezTissinicommented, Feb 7, 2020

Commenting for needed feature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Styling icon and text inside a button and centering it
I tried tables and divs and everything, but I cant seem to get them to center the icon and text on the button....
Read more >
Sizing Icons | Font Awesome Docs
Font Awesome includes a range of t-shirt based sizes that not only increase or decrease an icon's size, but also help vertically align...
Read more >
Styling The Good Ol' Button Element - Ahmad Shadeed
By setting line-height with equal or close value to the button's height, the text will be centered. However, the downsides of this method...
Read more >
Wix Editor: Customizing the Design of Your Buttons
Click the Design icon on your button to start customizing. ... Click the toggle to enable shadows. ... Change the size of the...
Read more >
Icon Button CSS Styling Guide
This guide will build on the previous episode 'CSS Button Styling Guide' to explore the use case of icon buttons. We'll cover icon...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found