Skip to content

Commit

Permalink
fix(item-option): set the display and box sizing for anchors
Browse files Browse the repository at this point in the history
fixes #17402
  • Loading branch information
brandyscarney committed Mar 8, 2019
1 parent bf70520 commit acb4433
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/components/item-option/item-option.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
@include text-inherit();
@include padding(0, .7em);

display: inline-block;

position: relative;

width: 100%;
Expand All @@ -51,6 +53,8 @@

cursor: pointer;
appearance: none;

box-sizing: border-box;
}

.button-inner {
Expand Down
18 changes: 18 additions & 0 deletions core/src/components/item-sliding/test/standalone/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ <h2>HubStruck Notifications</h2>
</ion-item-option>
</ion-item-options>
</ion-item-sliding>

<!-- Sliding item with icon bottom options on end side -->
<ion-item-sliding>
<ion-item>
Expand All @@ -152,6 +153,23 @@ <h2>HubStruck Notifications</h2>
</ion-item-options>
</ion-item-sliding>

<!-- Sliding item with one anchor option -->
<ion-item-sliding>
<ion-item>
<ion-label>
Sliding Item, Anchor Icon Option
</ion-label>
</ion-item>
<ion-item-options>
<ion-item-option href="#" color="primary">
<ion-icon slot="icon-only" name="star"></ion-icon>
</ion-item-option>
<ion-item-option color="secondary">
<ion-icon slot="icon-only" name="archive"></ion-icon>
</ion-item-option>
</ion-item-options>
</ion-item-sliding>

</body>

</html>

0 comments on commit acb4433

Please sign in to comment.