Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
ecb59b2d
Commit
ecb59b2d
authored
Oct 20, 2015
by
Robert Knight
Committed by
Nick Stenning
Oct 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add radio buttons in sort dropdown menu to indicate selected item
T-91
parent
d41ba362
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
common.scss
h/static/styles/common.scss
+21
-0
sort_dropdown.html
h/templates/client/sort_dropdown.html
+4
-2
No files found.
h/static/styles/common.scss
View file @
ecb59b2d
...
...
@@ -328,6 +328,27 @@ html {
visibility
:
visible
;
}
.dropdown-menu__row
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
}
.dropdown-menu-radio
{
display
:
inline-block
;
width
:
12px
;
height
:
12px
;
border-radius
:
50%
;
margin-left
:
8px
;
margin-right
:
8px
;
border
:
1px
solid
$color-silver
;
}
.dropdown-menu-radio.is-selected
{
border
:
4px
solid
$color-dove-gray
;
}
.masthead
{
margin-bottom
:
1em
;
...
...
h/templates/client/sort_dropdown.html
View file @
ecb59b2d
...
...
@@ -15,9 +15,11 @@
<i
class=
"h-icon-sort"
></i>
</button>
<ul
class=
"dropdown-menu pull-right"
role=
"menu"
>
<li
ng-repeat=
"sortOption in sortOptions"
<li
class=
"dropdown-menu__row"
ng-repeat=
"sortOption in sortOptions"
ng-click=
"onChangeSortBy({sortBy: sortOption})"
><span
ng-class=
"sortOption === sortBy ? 'dropdown-menu__radio-btn--selected' : ''"
><span
class=
"dropdown-menu-radio"
ng-class=
"{'is-selected' : sortOption === sortBy}"
></span><a
class=
"dropdown-menu__link"
href=
""
>
{{sortOption}}
</a></li>
</ul>
</span>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment