-
Notifications
You must be signed in to change notification settings - Fork 84
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
Two tier button text #1385
Comments
3 tasks
toni-sharpe
pushed a commit
that referenced
this issue
Jul 4, 2017
* Text internal to button is positioned one pixel higher due to allowing flex to centre, rather than using a one pixel offset
toni-sharpe
pushed a commit
that referenced
this issue
Jul 5, 2017
* Alphabetise private `Button` functions. * Correct comments. * Check for Boolean type explicitly in `smallFont` proptype function * Ensure nice deafult for `smallFont`
toni-sharpe
pushed a commit
that referenced
this issue
Jul 5, 2017
toni-sharpe
pushed a commit
that referenced
this issue
Jul 10, 2017
* Font size setting was not needed on large button * Release note for font size
toni-sharpe
pushed a commit
that referenced
this issue
Jul 24, 2017
* We need to use an internal wrapper when there are multiple children in the button * This is because flex will not apply to certain HTML elements in certain browsers * [link for more](https://stackoverflow.com/questions/35464067/flexbox-not-working-on-button-element-in-safari) * Set the same flex definitions on the internal wrapper so if it exists it applies to those children * `column` is also applied as our children are stacked for this quite tightly controlled contents * Also fix demo site menu spacing
toni-sharpe
pushed a commit
that referenced
this issue
Jul 24, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PR
#1391
Problem
Buttons are currently very restricted in what they can accept, with fixed height, fixed vertical alignment and one line only allowed.
We want to allow a little bit more flexibility here while simultaneously keeping away from the free style that accepting any children would allow.
Solution
In order to do this we will accept a prop called
labelSubtext
which will take the secondary text for the button. We might also need to tweak line-height and button padding values only in this context.Done means
Related Issues
#1386
The text was updated successfully, but these errors were encountered: