My download pending order button isn't functioning properly on ios tablets. How do I hide this button on ios tablets only? Currently, how I have it setup its hides for any tablet.
I've created an id in my html and did an display:none; in my css.
Html
<div id="hide-download">
<app-button name="download"
classAttr="btn-primary"
(click)="downloadFile()"
[disabled]="!allOrders || allOrders.length === 0">
<i class="fas fa-download button-icon-padding"></i>
Download
</app-button>
<a class="hidden" #download></a>
</div>
Css
@media screen and (max-width: 768px) {
#hide-download {
display:none;
}
}
I expected to hide for ios tablets only accounting for (portrait mode and landscape mode). However, it hides for all tablet devices except in landscape mode.