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

Separate checkbox single and checkbox with text styling #850

Merged
merged 2 commits into from
Jan 26, 2018
Merged

Conversation

iRoachie
Copy link
Collaborator

@iRoachie iRoachie commented Jan 26, 2018

Currently right now making a checkbox without text produces an ugly spacing and border around the component. This is caused because the styling for the text style is being applied.

screen shot 2018-01-26 at 12 44 03 pm

This PR allows the checkbox to be an independent grown man able to display differently depending on if there's a title.

screen shot 2018-01-26 at 12 44 56 pm

@codecov
Copy link

codecov bot commented Jan 26, 2018

Codecov Report

Merging #850 into next will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             next     #850   +/-   ##
=======================================
  Coverage   53.03%   53.03%           
=======================================
  Files          29       29           
  Lines         511      511           
  Branches      108      108           
=======================================
  Hits          271      271           
  Misses        185      185           
  Partials       55       55
Impacted Files Coverage Δ
src/checkbox/CheckBox.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2593e33...508a79c. Read the comment docs.

@iRoachie iRoachie merged commit 7f86fbe into next Jan 26, 2018
@iRoachie iRoachie deleted the checkbox branch January 26, 2018 17:10
@Monte9
Copy link
Collaborator

Monte9 commented Jan 28, 2018

I like it! It's such details that make a library into a living legend great! Thanks for doing it @iRoachie 🎉

xavier-villelegier pushed a commit that referenced this pull request Jan 28, 2018
* Update README.md - fixing typos (#835)

* Pass activeOpacity to TouchableOpacity inside Tile (#839)

* Pass activeOpacity to TouchableOpacity inside Tile

* Update Tile tests

* Comment `LinearGradient` for now (FIXME)

* feat(example): Cleanup remains from example app split

* Fix ListItem (#848)

Fix error on empty rightTitle prop by adding !!

* Separate checkbox single and checkbox with text styling (#850)

* (theming) Unify components under one primary color (#849)

* feat(theming): Remove not-used colors

* feat(theme): Add primary color and use through components

Added in button, button group, badge, and header

* Update snapshots

* Update underColor on buttonGroup to match selectedColor

* Snapshots

* Add color for Checkbox

* fix(Checkbox): Shifting width between checked and unchecked

* chore(packages): Update versions to fix warnings in jest

* added listItem right icon size so that it takes rightIcon size, or 28 (#852)

* uses thumbStyle.transform values in the thumb View (#820)

* [ts] Correct style type for IconObject (#851)

* Add ButtonComponent props and linear gradient props (#857)

* Add ButtonComponent props

* Use `linearGradientProps` + add error on mounting

* feat(button-group): Adds selectMultiple feature (#858)

Closes #713

* Platform specific SearchBar (#837) 🚀

* Add SearchBar wrapper

* Split SearchBar iOS and Android into separate files

* Add back default SearchBar

* Update root import

* Add back Input right/left icon

* Rename loadingIcon to loadingProps

* Specify `platform` PropType

* Add a fallback

* Move tests to `searchbar`

* Remove old Search component

* Fix loading props spreading overriding whole style

* Remove useless things

* Add tests for SearchBar

* Generate snapshots

* Add more tests

* Update tests

* Update documentation

* Fix typo

* Slightly changed the style of SearchBars

* Bump version to `1.0.0-beta2`

* Update snapshots from Searchbar changes

* feat(button): Re-add custom TouchableComponent

* feat(Button): Cleanup button code, update ts definitions (#859)

* Update SearchBars PropTypes

* feat(searchbar-both) Add additional defaultProps

Made tests pass

* Fix PropTypes warnings

* Update snapshots from searchbar android change

* feat(ts): Add definitons for searchbar (#860)

* Fix attributes spreading in platform specific searchbars

* feat(Button) Fix activeOpacity props

* fixed PricingCard to use new Button props

* test(jest): Update PricingCard snapshots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants