This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.
feat(pagination): make unselectable and cursor:pointer #627
Closed
Description
When playing around with the pagination in http://angular-ui.github.io/bootstrap/#/pagination - it feels a bit wrong:
- Hovering over the pages does not switch the curser to pointer-mode
- Double-clicking will select text, which makes it look weird and ugly
I've solved this in my own app by applying these styles around the pagination element, and it feels quite nice:
.pagination {
cursor:pointer;
text-align: center;
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+ */
/* Rules below not implemented in browsers yet */
-o-user-select: none;
user-select: none;
}
Plunker demo: http://plnkr.co/edit/OssCsw?p=preview
Maybe you want to make this the default look & feel. I'm not sure how to build this into angular-ui/javascript (yet), so I'll just leave it with the idea.