Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
Modified kebab to pull right per code comments.
Browse files Browse the repository at this point in the history
Adjusted spacing for bulk actions.
  • Loading branch information
dlabrecq committed Nov 8, 2016
1 parent f680337 commit 4f291ca
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
14 changes: 13 additions & 1 deletion src/less/datatables.less
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,18 @@
}
}
}
.toolbar-pf-action-right {
> .btn {
margin-left: 5px;
}
> .dropdown-kebab-pf {
margin-left: 10px;
}
float: right;
@media (max-width: @grid-float-breakpoint) {
float: right;
}
}
.toolbar-pf-results {
> div {
padding-left: 10px;
Expand All @@ -302,7 +314,7 @@
width: 100%;
}
.dropdown-kebab-pf {
padding-left: @table-cell-padding;
padding-right: @table-cell-padding;
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/pages/_includes/widgets/datatables/datatable.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
className: "datatable-pf-actions",
render: function (data, type, full, meta) {
// Inline action kebab renderer
return '<div class="dropdown btn-group dropdown-kebab-pf">' +
return '<div class="dropdown pull-right dropdown-kebab-pf">' +
'<button class="btn btn-link dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">' +
'<span class="fa fa-ellipsis-v"></span></button>' +
'<ul class="dropdown-menu " aria-labelledby="dropdownKebab">' +
'<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownKebabRight">' +
'<li><a href="#">Action</a></li>' +
'<li><a href="#">Another action</a></li>' +
'<li><a href="#">Something else here</a></li>' +
'<li role="separator" class="divider"></li>' +
'<li><a href="#">Separated link</a></li></ul></div>';
'<li><a href="#">Separated link</a></li></div>';
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion tests/pages/_includes/widgets/datatables/tmpl/toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<button class="btn btn-default" type="button" id="deleteAllRows">Delete All Rows</button>
<button class="btn btn-default" type="button" id="restoreRows">Restore Rows</button>
<button class="btn btn-default" type="button">Action</button>
{% include widgets/kebab.html dropmenuType="dropdown btn-group" dropmenuId="actionsKebab" dropmenuVariation="dropdown-kebab-pf" %}
{% include widgets/kebab.html dropmenuType="dropdown" dropmenuPosition="pull-right" dropmenuId="actionsKebab" dropdownPosition="dropdown-menu-right" dropmenuVariation="dropdown-kebab-pf" %}
</div>
</form>
<div class="row toolbar-pf-results">
Expand Down

0 comments on commit 4f291ca

Please sign in to comment.