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

Fix for ListPicker icons being invisible #191

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions source/nuPickers/Shared/ListPicker/ListPickerEditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
border:1px solid #9e9e9e;
}

.list-picker .disabled { /* li and .button */
.list-picker .disabled { /* li and .picker-button */
opacity: 0.7;
filter: alpha(opacity=70); /* msie */
}
Expand All @@ -68,25 +68,25 @@
padding-left:4px; /* TODO: move to a child element to avoid conflict with 90% / 10% widths */
}

.list-picker .button {
.list-picker .picker-button {
width: 10%;
height: 100%;
position: absolute;
/*font-size:20px;*/
text-align:center;
}

.list-picker .button.disabled {
.list-picker .picker-button.disabled {
cursor:default; /* disable the hand */
}

.list-picker .button:hover,
.list-picker .picker-button:hover,
.list-picker .sort:hover
{
background-color: #ddd;
}

.list-picker .button.disabled:hover {
.list-picker .picker-button.disabled:hover {
background-color:transparent;
}

Expand All @@ -102,7 +102,7 @@
{{ custom markup }}
</div>

<a class="button (disabled)"></a>
<a class="picker-button (disabled)"></a>

</li>
</ul>
Expand All @@ -127,21 +127,21 @@
text-align:left;
}

.list-picker .selectable .button {
.list-picker .selectable .picker-button {
right: 0;
border-left: 1px solid #ccc;
}

.list-picker .disabled .button {
border-left:none; /* no icon, so remove the line indicating a button */
.list-picker .disabled .picker-button {
border-left:none; /* no icon, so remove the line indicating a picker-button */
}

/*
<div class="selected-and-placeholders">
<ul class="bars selected">
<li class="(lit)">

<a class="button"></a>
<a class="picker-button"></a>

<div class="option-label (sort)">
{{ custom markup }}
Expand Down Expand Up @@ -173,14 +173,14 @@
}

.list-picker .selected .option-label {
margin-left:10%; /* make space for the button */
margin-left:10%; /* make space for the picker-button */
}

.list-picker .selected .sort {
cursor: move;
}

.list-picker .selected .button {
.list-picker .selected .picker-button {
left: 0;
border-right: 1px solid #ccc;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>

<a href=""
class="button icon blue"
class="picker-button icon color-blue"
ng-class="isValidSelection(option) ? 'active icon-add' : 'disabled'"
ng-mouseenter="lit = isValidSelection(option)"
ng-mouseleave="lit = false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
ng-repeat="option in selectedOptions track by $index">

<a href=""
class="button icon icon-delete red"
class="picker-button icon icon-delete color-red"
ng-mouseenter="lit = true"
ng-mouseleave="lit = false"
ng-click="deselectOption($index)">
Expand Down