Skip to content

Commit c6757be

Browse files
committed
ux(dashboard): new row tabs look
1 parent bda5cdc commit c6757be

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

public/app/features/dashboard/row/row.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
</div>
1313

1414
<div class="dash-row-header-actions">
15-
<a class="pointer dash-row-header-action-add-panel" ng-click="ctrl.showAddPanel()">
15+
<a class="pointer dash-row-header-action-add-panel" ng-click="ctrl.showAddPanel()" ng-class="{active: ctrl.dropView===1}">
1616
Add Panel
1717
<i class="fa fa-plus" ng-hide="ctrl.dropView===1"></i>
1818
<i class="fa fa-remove" ng-show="ctrl.dropView===1"></i>
1919
</a>
20-
<a class="pointer dash-row-header-action-show-options" ng-click="ctrl.showRowOptions()">
20+
<a class="pointer dash-row-header-action-show-options" ng-click="ctrl.showRowOptions()" ng-class="{active: ctrl.dropView===2}">
2121
Row Options
2222
<i class="fa fa-cog" ng-hide="ctrl.dropView===2"></i>
2323
<i class="fa fa-remove" ng-show="ctrl.dropView===2"></i>

public/sass/components/_row.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,25 @@
4444
position: absolute;
4545
color: $text-muted;
4646
font-size: $font-size-sm;
47-
bottom: 5px;
47+
bottom: 0px;
4848
right: 1rem;
4949
a {
50+
display: inline-block;
51+
padding: 6px 11px;
5052
color: $text-muted;
5153
padding-left: 1rem;
5254
&:hover {
5355
color: $link-hover-color;
5456
}
5557
}
58+
a.active {
59+
color: $link-color;
60+
background: $panel-bg;
61+
border: $panel-border;
62+
border-bottom: none;
63+
position: relative;
64+
top: 1px;
65+
}
5666
}
5767

5868
.dash-row-header-add-panel {

0 commit comments

Comments
 (0)