Guide to personalizing the ion-select and ion-option menu on Ionic platform

i am striving to achieve an ionic view similar to this

my ideal look is like this

However, at the moment I have this

What changes or additions do I need to make to achieve this layout, or is this design theme inherent to the Android OS rather than the Ionic application?

If anyone has insights on how to address this issue or what steps I need to take to modify the appearance of the ion-select and ion-options menus, your help would be greatly appreciated.

SCSS

page-home {
.center {
display: block;
margin: auto;
padding-top: 5px;
padding-bottom: 10px;
}
.margins {
margin-left: 5%;
margin-right: 5%;
}
.ilb {
display: flex;
margin: 5px;
}
.curved {
margin-bottom: 10px;
border-radius: 10px;
}
.curvedButton {
margin-left:10px;
margin-right: 10PX;
border-radius: 10px;
}

}

HTML

<div class="margins">
<form [formGroup]="todo" (ngSubmit)="CreateUser()" novalidate>
  <ion-item class="curved">
    <ion-label>Name</ion-label>
    <ion-input type="text" formControlName="name"></ion-input>
    <p color="danger" ion-text *ngIf="todo.get('name').hasError('required')">*Required</p>
  </ion-item>
  <ion-item class="curved">
    <ion-label>Company</ion-label>
    <ion-input type="text" formControlName="company"></ion-input>
  </ion-item>
  <ion-item class="curved">
    <ion-label>Room</ion-label>
    <ion-select #C (ionChange)="onChange(C.value)" id="roomFilter" formControlName="room">
      <ion-option *ngFor="let lab of labs" value="{{lab}}" type="string">{{lab}}</ion-option>
    </ion-select>
  </ion-item>
  <ion-item  class="curved" *ngIf="todo.get('room').errors && todo.get('room').dirty">
    <p color="danger" ion-text *ngIf="todo.get('room').hasError('required')">*Required</p>
  </ion-item>
  <ion-item class="curved">
    <ion-label>PassID</ion-label>
      <ion-select formControlName="passID" multiple="true" id="passesID">
        <ion-option *ngFor="let pass of passes" value="{{pass}}">{{pass}}</ion-option>
      </ion-select>
  </ion-item>
  <ion-item  class="curved" *ngIf="todo.get('passID').errors && todo.get('passID').dirty">
    <p color="danger" ion-text *ngIf="todo.get('passID').hasError('required')">*Required</p>
  </ion-item>
  <ion-item class="curved">
    <ion-label>Pass Return Date</ion-label>
    <ion-datetime displayFormat="DD MMM YYYY " min="2018" max="2030" formControlName="date" multiple="true">
    </ion-datetime>
  </ion-item>
  <div class="ilb">
    <button class="curvedButton" ion-button block type="Reset">Reset Form</button>
    <button class="curvedButton" ion-button block type="submit" [disabled]="!todo.valid">Create</button>
  </div>
<ion-row style="height: 100px"></ion-row>
  <img alt="CC Logo" src="assets/imgs/Global Solutions Center_white.png" class="center" width="100%">

Answer №1

In iOS, the appearance can be verified by opening Chrome dev tools and selecting an iOS device; it will resemble what is shown here. After reviewing the ion selects documentation, there was no mention of a "mode" property to switch it to an iOS look. Therefore, I am uncertain if achieving this without manually adjusting all styles is possible.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The Foundation 6 Zurb Template is not compatible for offline use

After successfully installing Foundation 6 Zurb Template via the cli, I encountered no issues. I then added the missing babel install and everything worked fine online. However, BrowserSync does not seem to work offline. Upon initiating watch, I receive a ...

How can I modify the ngx-datatable pager component to display text instead of icons and include a totalVisible property?

I am currently customizing the datatable-pager in ngx-dataTable and have been successful in adding footers and pagers. However, I am facing two issues that need resolution: How can I display text instead of icons for the prev/Next/First and Last buttons? ...

Simple ways to conceal the style of the underline for disabled input fields

When customizing the appearance of an HTML element such as paper-input and disabled, a dotted underline style is automatically applied. https://i.sstatic.net/utwHg.png To modify the disabled styles, you can do the following: paper-input { --paper-input ...

Is your idTabs design in need of some sprucing up

Just stumbled upon idTabs and trying to implement a basic one on my server. I've taken the code from the 'Usual' page, included the plugin file and jQuery, but all I'm seeing is... - Tab 1 - Tab 2 - Tab 3 This is tab 1. Seems like it& ...

Invoking a parent controller method from a directive in AngularJS

I have utilized a tree grid plugin from the following link: https://github.com/khan4019/tree-grid-directive and I made some customizations to its template: .directive('treeGrid', [ '$timeout', function($timeout) { return { ...

Mocha Test Runs Are Exceeding Time Limits

I've updated to Node.js 4.0 which now supports generators. After trying gulp-mocha-co and upgrading to Node 4.0 for generator support, I encountered timeouts in my mocha tests when trying to make them generator-friendly. Adding the * to my mocha unit ...

What is the best way to retrieve an array of divs that have a particular class assigned to them?

Recently, I've been developing a web project that requires a gallery with a slider below it. To tackle this issue, I have utilized the following JavaScript code within a forEach(element) function: var divnumber = Array.from(element.parentNode.childre ...

What is causing these cells in a Google Spreadsheet to be considered equal?

I am currently working on a Google Apps script that interacts with a Google spreadsheet. I'm facing an issue where I need to compare two cells, but they are showing as equal. As part of my code logic, I have a for loop where the comparison is made: ...

Guide on inserting a canvas image among the various jsPdf components

After converting the specific <div> tag to <canvas> using html2canvas, I am looking to integrate this converted canvas image with other elements in JsPdf such as Autotables and texts. Appreciate any guidance or suggestions. Thank you. ...

showing the chosen item in a Bootstrap dropdown [limited to the first menu option and using the attr() method]

Is there a way to dynamically display the selected menu option using the bootstrap drop down? Initially, I was able to select the first menu option and apply it to the bootstrap drop-down button. However, I encountered an issue where I cannot change the ...

Validation of Regular Expressions in Javascript

I am trying to implement control validation using Javascript. The validation criteria states that the number should consist of a maximum of 12 digits, with the first 7 being '9900000' followed by either a '0' or a '1', and en ...

Misalignment of social media buttons is causing display issues

I have arranged my Social Media Div to the right of my Review Div: http://jsfiddle.net/eYQWE/ The issue: the social media buttons in My Social Media div are not staying in a straight line and keep dropping below my Review Div. Do you have any suggestions ...

Inject JavaScript Object Information into Bootstrap Modal

After iterating through each object and assigning its data to an individual div along with a button, I encountered an issue. When testing the buttons, I noticed that only the last object's data was displayed in all of the modal windows. Any suggestion ...

Leveraging Photoshop Actions with User-Generated Images

Is it possible to allow users to upload an image to my website and then apply a series of Photoshop actions, such as adding a layer behind the image, another one in front, and dynamic text with effects like drop shadow and gradient overlay? ...

Why isn't the card positioned in the center of the screen?

Why is the card not centered on the screen as it is supposed to be? I am utilizing Bootstrap 4.5 <div class="container"> <div class="row"> <div class"col"></div> <div class="col-8"> <div class="card"> ...

Ensure that text within openhtmltopdf is aligned to the right and any unnecessary white space at the

Currently, I am using the open source project openhtmltopdf but I have encountered a certain issue. Within a div-element, I have a p-tag with text-align: right styling. The text is aligned correctly to the right until there is a line break due to the widt ...

The z-index functionality does not seem to be functioning properly on versions Chrome 52, Edge,

Trouble with the size of image returning incorrectly in SAFARI browser What I have: Framework: Jquery Bootstrap What I do: Managing an image slider Browsers (working, not working): chrome version 52 (n) (same mobile result) firefox Version 52.0.27 ...

The function in jQuery that can be used to hide a <div> when clicked

I am facing a problem with my jQuery code that is supposed to remove/hide a specific div. Despite checking various examples, I can't seem to make it work properly. This issue arises in the context of jQuery on Drupal 7. The live site where this proble ...

How to set element height based on screen height rather than browser height

How can I set the height of a div container to be 60% of the screen height, but ensure it maintains that height even when the browser window is resized? Setting the height as 60% in CSS works initially, but the div shrinks proportionately when the window s ...

Is it possible for me to conceal partially truncated lines of text completely?

When I place text in a container with a set height and hidden overflow, the final line that could fit sometimes gets cut off. Check out this example on jsFiddle or view the image for reference. Is there a way to prevent the last line from being partially ...