changes the order of the close btn on alerts to improve accecibility
This commit is contained in:
parent
4e2ed6890c
commit
f02f545e0e
|
@ -59,10 +59,10 @@ You can see this in action with a live demo:
|
||||||
|
|
||||||
{% example html %}
|
{% example html %}
|
||||||
<div class="alert alert-warning alert-dismissible fade show" role="alert">
|
<div class="alert alert-warning alert-dismissible fade show" role="alert">
|
||||||
|
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
|
|
||||||
</div>
|
</div>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
.alert {
|
.alert {
|
||||||
|
position: relative;
|
||||||
padding: $alert-padding-y $alert-padding-x;
|
padding: $alert-padding-y $alert-padding-x;
|
||||||
margin-bottom: $alert-margin-bottom;
|
margin-bottom: $alert-margin-bottom;
|
||||||
border: $alert-border-width solid transparent;
|
border: $alert-border-width solid transparent;
|
||||||
|
@ -28,9 +29,9 @@
|
||||||
.alert-dismissible {
|
.alert-dismissible {
|
||||||
// Adjust close link position
|
// Adjust close link position
|
||||||
.close {
|
.close {
|
||||||
position: relative;
|
position: absolute;
|
||||||
top: -$alert-padding-y;
|
top: 0;
|
||||||
right: -$alert-padding-x;
|
right: 0;
|
||||||
padding: $alert-padding-y $alert-padding-x;
|
padding: $alert-padding-y $alert-padding-x;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue