Skip to content

Added support for 3 digit hex colors#455

Closed
arthuralee wants to merge 1 commit into
react:masterfrom
arthuralee:master
Closed

Added support for 3 digit hex colors#455
arthuralee wants to merge 1 commit into
react:masterfrom
arthuralee:master

Conversation

@arthuralee

Copy link
Copy Markdown
Contributor

This addition adds a check for whether a hex color is 3 or 6 digits. If it is 3 digits, it will expand the short form into 6 digits, just like in CSS. The additional benefit of having the length check is that hex colors of invalid lengths (like 4 digits) will be considered invalid. In CSS, invalid length hex colors returns white, but here I have logged an error through RCTLogError.

@frantic

frantic commented Mar 30, 2015

Copy link
Copy Markdown
Contributor

Thanks for contribution! We merged the patch internally, should be out with the next sync.

@frantic frantic closed this Mar 30, 2015
vjeux pushed a commit to vjeux/react-native that referenced this pull request Apr 13, 2015
Summary:
This addition adds a check for whether a hex color is 3 or 6 digits. If it is 3 digits, it will expand the short form into 6 digits, just like in CSS. The additional benefit of having the length check is that hex colors of invalid lengths (like 4 digits) will be considered invalid. In CSS, invalid length hex colors returns white, but here I have logged an error through `RCTLogError`.
Closes react#455
Github Author: Arthur Lee <arthur@arthurlee.me>

Test Plan: Tried a couple of colors in the sample app, like `#FACEB0`, `#F00`, etc.
vjeux pushed a commit to vjeux/react-native that referenced this pull request Apr 14, 2015
Summary:
This addition adds a check for whether a hex color is 3 or 6 digits. If it is 3 digits, it will expand the short form into 6 digits, just like in CSS. The additional benefit of having the length check is that hex colors of invalid lengths (like 4 digits) will be considered invalid. In CSS, invalid length hex colors returns white, but here I have logged an error through `RCTLogError`.
Closes react#455
Github Author: Arthur Lee <arthur@arthurlee.me>

Test Plan: Tried a couple of colors in the sample app, like `#FACEB0`, `#F00`, etc.
vjeux pushed a commit to vjeux/react-native that referenced this pull request Apr 15, 2015
Summary:
This addition adds a check for whether a hex color is 3 or 6 digits. If it is 3 digits, it will expand the short form into 6 digits, just like in CSS. The additional benefit of having the length check is that hex colors of invalid lengths (like 4 digits) will be considered invalid. In CSS, invalid length hex colors returns white, but here I have logged an error through `RCTLogError`.
Closes react#455
Github Author: Arthur Lee <arthur@arthurlee.me>

Test Plan: Tried a couple of colors in the sample app, like `#FACEB0`, `#F00`, etc.
jfrolich pushed a commit to jfrolich/react-native that referenced this pull request Apr 22, 2020
tido64 pushed a commit to tido64/react-native that referenced this pull request Jun 19, 2020
…ed (react#455)

* Attempting to add isVoiceOverEnabled to macOS

* removing console.log

* Removed Merge conflicts

* Resolved merge conflict

* Removed comments/notes

* Removed comments/notes

* Added Features and encorporated into test app

* Removed logging

* Fixed mistakes in PR

* Changing name to DisplayOptions

* Removing extra newlines

* Adding linting fixes

* Added Notifaction unsubscribe to dealloc

* Lowercased selector to fit obj-c convention

* uncommented unsubscription

* Added TODOs around diff

* Put ScreenReaderStatus back in it's own component

* Lint fix
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

Successfully merging this pull request may close these issues.

2 participants