Fix Dropdown Test Overflow Issue
This commit is contained in:
1 parent
913bdea398
commit
c0cd104d8d
3 files changed
+9
-3
No files matched your search
+3
-3
@@ -3,7 +3,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>AEF Component Test</h1>
|
<h1>AEF Component Test</h1>
|
||||||
|
|
||||||
<section id="switch-test">
|
<section id="switch-test" class="test-container">
|
||||||
<h2>Switch Component</h2>
|
<h2>Switch Component</h2>
|
||||||
<switch [(isActive)]="isToggled" (toggle)="handleToggle($event)"></switch>
|
<switch [(isActive)]="isToggled" (toggle)="handleToggle($event)"></switch>
|
||||||
<p>Switch is: {{ isToggled() ? 'ON' : 'OFF' }}</p>
|
<p>Switch is: {{ isToggled() ? 'ON' : 'OFF' }}</p>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<section id="dropdown-test">
|
<section id="dropdown-test">
|
||||||
<h2>Dropdown Component</h2>
|
<h2>Dropdown Component</h2>
|
||||||
<div style="display: flex; flex-direction: column; gap: 40px; align-items: flex-start;">
|
<div style="display: flex; flex-direction: column; gap: 40px; align-items: flex-start;">
|
||||||
<div>
|
<div class="test-container">
|
||||||
<h3>Object Options</h3>
|
<h3>Object Options</h3>
|
||||||
<dropdown
|
<dropdown
|
||||||
[options]="dropdownOptions"
|
[options]="dropdownOptions"
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<p>Selected Value: {{ selectedDropdownValue() }}</p>
|
<p>Selected Value: {{ selectedDropdownValue() }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div class="test-container">
|
||||||
<h3>String Options (Simple)</h3>
|
<h3>String Options (Simple)</h3>
|
||||||
<dropdown
|
<dropdown
|
||||||
[options]="['Small', 'Medium', 'Large']"
|
[options]="['Small', 'Medium', 'Large']"
|
||||||
|
|||||||
@@ -33,3 +33,7 @@ section#dropdown-test {
|
|||||||
width: 324px;
|
width: 324px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.test-container {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
@@ -26,6 +26,8 @@ $dropdown_animation_duration: 0.2s;
|
|||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
max-width: 100%;
|
||||||
|
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
box-shadow: 0 0 0 1px $dropdown_border_color inset, 0 0 0 2px white, 0 0 0 4px $dropdown_accent;
|
box-shadow: 0 0 0 1px $dropdown_border_color inset, 0 0 0 2px white, 0 0 0 4px $dropdown_accent;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user