Skip to content

Commit 4b87a34

Browse files
committed
fix(dropdowns): dropup misplaced temp fix
1 parent 907cdbb commit 4b87a34

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Diff for: src/app/views/buttons/dropdowns.component.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.dropup .dropdown-menu {
2+
transform: none!important;
3+
}

Diff for: src/app/views/buttons/dropdowns.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@
162162
</div>
163163
<div class="card-body">
164164
<div class="btn-group" dropdown [dropup]="isDropup">
165-
<button dropdownToggle type="button" class="btn btn-primary dropdown-toggle">
165+
<button id="button-dropup" dropdownToggle type="button" class="btn btn-primary dropdown-toggle">
166166
Dropup <span class="caret"></span>
167167
</button>
168-
<ul *dropdownMenu class="dropdown-menu" role="menu">
168+
<ul id="dropdown-dropup" *dropdownMenu class="dropdown-menu" role="menu" aria-labelledby="button-dropup">
169169
<li role="menuitem"><a class="dropdown-item" href="#">Action</a></li>
170170
<li role="menuitem"><a class="dropdown-item" href="#">Another action</a>
171171
</li>

Diff for: src/app/views/buttons/dropdowns.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Component } from '@angular/core';
22

33
@Component({
44
templateUrl: 'dropdowns.component.html',
5+
styleUrls: ['dropdowns.component.css']
56
})
67
export class DropdownsComponent {
78

0 commit comments

Comments
 (0)