FIX: category badges css refactoring/fixes

This commit fixes multiple css issues with category badges in select-kit and outside of select-kit. It also contains refactoring of components impacted by those changes.
This commit is contained in:
Joffrey JAFFEUX
2018-01-11 13:05:29 +01:00
committed by GitHub
parent 9c66473c4c
commit 3a7d2da633
10 changed files with 92 additions and 80 deletions

View File

@@ -1,7 +1,7 @@
<span class="name">
<div class="body">
<span class="delete-icon" {{action deselect computedContent bubbles=false}}>
{{d-icon "times"}}
</span>
{{badge}}
</span>
</div>

View File

@@ -1,13 +0,0 @@
<div class="selected-color-wrapper">
<span class="name">
{{#unless isLocked}}
<span class="delete-icon" {{action deselect computedContent bubbles=false}}>
{{d-icon "times"}}
</span>
{{/unless}}
#{{{label}}}
</span>
<span class="color-preview"></span>
</div>

View File

@@ -1,13 +1,19 @@
{{#if isLocked}}
<span class="delete-icon">
{{d-icon "lock"}}
</span>
{{else}}
<span class="locked-icon" {{action deselect computedContent bubbles=false}}>
{{d-icon "times"}}
</span>
{{/if}}
{{#if headerContent}}<div class="header">{{headerContent}}</div>{{/if}}
<span class="name">
{{{label}}}
</span>
<div class="body">
{{#if isLocked}}
<span class="delete-icon">
{{d-icon "lock"}}
</span>
{{else}}
<span class="locked-icon" {{action deselect computedContent bubbles=false}}>
{{d-icon "times"}}
</span>
{{/if}}
<span class="name">
{{{label}}}
</span>
</div>
{{#if footerContent}}<div class="footer">{{footerContent}}</div>{{/if}}