From: Andres Galante Date: Fri, 25 Aug 2017 01:11:36 +0000 (-0300) Subject: changes the order of the close btn on alerts to improve accecibility X-Git-Tag: v4.0.0-beta.2~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f02f545e0eb4cc8fca282465ccdf54f29d0a1acc;p=thirdparty%2Fbootstrap.git changes the order of the close btn on alerts to improve accecibility --- diff --git a/docs/4.0/components/alerts.md b/docs/4.0/components/alerts.md index 90c146362e..b8bb0c2168 100644 --- a/docs/4.0/components/alerts.md +++ b/docs/4.0/components/alerts.md @@ -59,10 +59,10 @@ You can see this in action with a live demo: {% example html %} {% endexample %} diff --git a/scss/_alert.scss b/scss/_alert.scss index 3dfd13f56a..66fba24ead 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; }