Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 8620aed

Browse files
docs(all): add info about styling cursors for <a> tags
Closes #752 Closes #816
1 parent 366e0c8 commit 8620aed

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

misc/demo/assets/demo.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ section {
6969
border-top: 1px solid rgba(255,255,255,0.3);
7070
border-bottom: 1px solid rgba(221,221,221,0.3);
7171
}
72+
73+
.nav, .pagination, .carousel a {
74+
cursor: pointer;
75+
}
76+
7277
.bs-docs-social-buttons {
7378
margin-left: 0;
7479
margin-bottom: 0;

misc/demo/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,17 @@ <h3>Installation</h3>
156156
<code>angular.module('myModule', ['ui.bootstrap']);</code>
157157
</p>
158158
<p>You can fork one of the plunkers from this page to see a working example of what is described here.</p>
159+
<h3>CSS</h3>
160+
<p>Original Bootstrap's CSS depends on empty <code>href</code> attributes to style cursors for several components (pagination, tabs etc.).
161+
But in AngularJS adding empty <code>href</code> attributes to link tags will cause unwanted route changes.
162+
This is why we need to remove empty <code>href</code> attributes from directive templates and as a result
163+
styling is not applied correctly. The remedy is simple, just add the following styling to your application:
164+
<code>
165+
.nav, .pagination, .carousel a {
166+
cursor: pointer;
167+
}
168+
</code>
169+
</p>
159170
</div>
160171
</div>
161172
</section>

0 commit comments

Comments
 (0)