aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorAndres Galante <[email protected]>2017-08-24 22:11:36 -0300
committerMark Otto <[email protected]>2017-09-30 23:32:39 -0700
commitf02f545e0eb4cc8fca282465ccdf54f29d0a1acc (patch)
treec47b11f367083345f5def7cb7afb9bda7f304df6 /scss
parent4e2ed6890c778d3407dd8a5cd016164b2472d67a (diff)
downloadbootstrap-f02f545e0eb4cc8fca282465ccdf54f29d0a1acc.tar.xz
bootstrap-f02f545e0eb4cc8fca282465ccdf54f29d0a1acc.zip
changes the order of the close btn on alerts to improve accecibility
Diffstat (limited to 'scss')
-rw-r--r--scss/_alert.scss7
1 files changed, 4 insertions, 3 deletions
diff --git a/scss/_alert.scss b/scss/_alert.scss
index 3dfd13f56..66fba24ea 100644
--- a/scss/_alert.scss
+++ b/scss/_alert.scss
@@ -3,6 +3,7 @@
//
.alert {
+ position: relative;
padding: $alert-padding-y $alert-padding-x;
margin-bottom: $alert-margin-bottom;
border: $alert-border-width solid transparent;
@@ -28,9 +29,9 @@
.alert-dismissible {
// Adjust close link position
.close {
- position: relative;
- top: -$alert-padding-y;
- right: -$alert-padding-x;
+ position: absolute;
+ top: 0;
+ right: 0;
padding: $alert-padding-y $alert-padding-x;
color: inherit;
}