-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alert: remove superfluous <div> tag #2544
Labels
Milestone
Comments
Note to self: we might need to set |
maxokorokov
added a commit
to maxokorokov/ng-bootstrap
that referenced
this issue
Jul 27, 2018
@pkozlowski-opensource, opened a PR to see what it gives. On the one hand more logic because of dynamic css class names, on the other hand it's possible to add a class directly... |
maxokorokov
added a commit
to maxokorokov/ng-bootstrap
that referenced
this issue
Aug 3, 2018
BREAKING CHANGE: markup generated by `<ngb-alert>` was simplified, there is no more intermediate `<div>` element Before: ``` <ngb-alert> <div role="alert" class="alert alert-warning"> Hello there </div> </ngb-alert> ``` After: ``` <ngb-alert role="alert" class="alert d-block alert-warning"> Hello there </ngb-alert> ``` Fixes ng-bootstrap#2544
maxokorokov
added a commit
to maxokorokov/ng-bootstrap
that referenced
this issue
Aug 3, 2018
BREAKING CHANGE: markup generated by `<ngb-alert>` was simplified, there is no more intermediate `<div>` element Before: ``` <ngb-alert> <div role="alert" class="alert alert-warning"> Hello there </div> </ngb-alert> ``` After: ``` <ngb-alert role="alert" class="alert d-block alert-warning"> Hello there </ngb-alert> ``` Fixes ng-bootstrap#2544
maxokorokov
added a commit
to maxokorokov/ng-bootstrap
that referenced
this issue
Aug 3, 2018
BREAKING CHANGE: markup generated by `<ngb-alert>` was simplified, there is no more intermediate `<div>` element Before: ``` <ngb-alert> <div role="alert" class="alert alert-warning"> Hello there </div> </ngb-alert> ``` After: ``` <ngb-alert role="alert" class="alert alert-warning"> Hello there </ngb-alert> ``` Fixes ng-bootstrap#2544
maxokorokov
added a commit
that referenced
this issue
Aug 3, 2018
BREAKING CHANGE: markup generated by `<ngb-alert>` was simplified, there is no more intermediate `<div>` element Before: ``` <ngb-alert> <div role="alert" class="alert alert-warning"> Hello there </div> </ngb-alert> ``` After: ``` <ngb-alert role="alert" class="alert alert-warning"> Hello there </ngb-alert> ``` Fixes #2544 Closes #2552
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of today
<ngb-alert>
doesn't set Bootstrap classes on a host but adds a<div>
inside. This is an issue for animations and prevents people from properly styling the alert's host (see https://stackoverflow.com/questions/51450796/apply-classes-to-sub-elements-of-components/51451075 and #2542 as an example).We should remove this
<div>
and set classes (androle="alert"
directly on the host).The text was updated successfully, but these errors were encountered: