Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Fixed colorpicker to not show content when the color has transparency #15

Merged
merged 3 commits into from
Jun 18, 2019

Conversation

Blackbaud-TrevorBurch
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jun 17, 2019

Codecov Report

Merging #15 into master will increase coverage by 0.6%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #15     +/-   ##
=======================================
+ Coverage   99.39%   100%   +0.6%     
=======================================
  Files          10     10             
  Lines         497    496      -1     
  Branches       54     54             
=======================================
+ Hits          494    496      +2     
+ Misses          3      0      -3
Impacted Files Coverage Δ
...modules/colorpicker/colorpicker-input.directive.ts 100% <ø> (ø) ⬆️
...plugin-resources/colorpicker-resources-provider.ts 100% <0%> (+37.5%) ⬆️

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 4d0e594...db6f7aa. Read the comment docs.

@@ -247,7 +247,7 @@ export class SkyColorpickerInputDirective
this.skyColorpickerInput.setColorFromString(output);

this.renderer.setElementStyle(element, 'background-color', setElementValue);
this.renderer.setElementStyle(element, 'color', setElementValue);
this.renderer.setElementStyle(element, 'color', 'transparent');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird! I feel like this input should have never had a color set, because you wouldn't want to ever see that text inside the picker button. Should we just achieve this with a CSS declaration instead of doing this programmatically?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. I've updated this to use a css class and removed the setting line all together.

@Blackbaud-TrevorBurch Blackbaud-TrevorBurch merged commit 2342b58 into master Jun 18, 2019
@Blackbaud-TrevorBurch Blackbaud-TrevorBurch deleted the transparent-input-fix branch June 18, 2019 17:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants