|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en" dir="ltr"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <title>Segment View - Input</title> |
| 6 | + <meta |
| 7 | + name="viewport" |
| 8 | + content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" |
| 9 | + /> |
| 10 | + <link href="../../../../../css/ionic.bundle.css" rel="stylesheet" /> |
| 11 | + <link href="../../../../../scripts/testing/styles.css" rel="stylesheet" /> |
| 12 | + <script src="../../../../../scripts/testing/scripts.js"></script> |
| 13 | + <script nomodule src="../../../../../dist/ionic/ionic.js"></script> |
| 14 | + <script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script> |
| 15 | + |
| 16 | + <script> |
| 17 | + window.Ionic = { |
| 18 | + config: { |
| 19 | + mode: 'md', |
| 20 | + }, |
| 21 | + }; |
| 22 | + </script> |
| 23 | + |
| 24 | + <style> |
| 25 | + ion-segment-view { |
| 26 | + max-height: 550px; |
| 27 | + } |
| 28 | + |
| 29 | + /* These styles are causing the bug */ |
| 30 | + ion-segment-content { |
| 31 | + display: flex; |
| 32 | + align-items: center; |
| 33 | + justify-content: center; |
| 34 | + height: fit-content; |
| 35 | + } |
| 36 | + |
| 37 | + ion-segment-content:nth-of-type(1) { |
| 38 | + background: lightpink; |
| 39 | + } |
| 40 | + ion-segment-content:nth-of-type(2) { |
| 41 | + background: lightblue; |
| 42 | + } |
| 43 | + ion-segment-content:nth-of-type(3) { |
| 44 | + background: lightgreen; |
| 45 | + } |
| 46 | + </style> |
| 47 | + </head> |
| 48 | + |
| 49 | + <body> |
| 50 | + <ion-app> |
| 51 | + <ion-header> |
| 52 | + <ion-toolbar> |
| 53 | + <ion-title>Segment View - Input</ion-title> |
| 54 | + </ion-toolbar> |
| 55 | + </ion-header> |
| 56 | + |
| 57 | + <ion-content> |
| 58 | + <ion-segment> |
| 59 | + <ion-segment-button value="first" content-id="first"> |
| 60 | + <ion-label>First</ion-label> |
| 61 | + </ion-segment-button> |
| 62 | + <ion-segment-button value="second" content-id="second"> |
| 63 | + <ion-label>Second</ion-label> |
| 64 | + </ion-segment-button> |
| 65 | + <ion-segment-button value="third" content-id="third"> |
| 66 | + <ion-label>Third</ion-label> |
| 67 | + </ion-segment-button> |
| 68 | + </ion-segment> |
| 69 | + <ion-segment-view> |
| 70 | + <ion-segment-content id="first" |
| 71 | + >Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora |
| 72 | + quaeritis. Summus brains sit, morbo vel maleficia? De apocalypsi gorger omero undead survivor dictum |
| 73 | + mauris. Hi mindless mortuis soulless creaturas, imo evil stalking monstra adventus resi dentevil vultus |
| 74 | + comedat cerebella viventium. Qui animated corpse, cricket bat max brucks terribilem incessu zomby. The |
| 75 | + voodoo sacerdos flesh eater, suscitat mortuos comedere carnem virus. Zonbi tattered for solum oculi eorum |
| 76 | + defunctis go lum cerebro. Nescio brains an Undead zombies. Sicut malus putrid voodoo horror. Nigh tofth eliv |
| 77 | + ingdead.</ion-segment-content |
| 78 | + > |
| 79 | + <ion-segment-content id="second"> |
| 80 | + <ion-input value="" label="Email"></ion-input> |
| 81 | + </ion-segment-content> |
| 82 | + <ion-segment-content id="third"> |
| 83 | + <ion-img class="img-part" src="https://picsum.photos/200/300"> </ion-img> |
| 84 | + </ion-segment-content> |
| 85 | + </ion-segment-view> |
| 86 | + </ion-content> |
| 87 | + </ion-app> |
| 88 | + </body> |
| 89 | +</html> |
0 commit comments