If this is your first visit, check our documentation. To post, register or login.

Apple IOS and CSS Buttons

Started by calljj on 4 May 2024, 8:31 AM · Views: 1,829

Results 1 to 3 of 3
4 May 2024, 8:31 AM
#1
calljj avatar

calljj

Zen Follower

Join Date:
Mar 2007
Posts:
253
Plugin Contributions:
2

Post #1 by calljj

CSS buttons display fine and do work, but only if you click in a certain area within that button - that area being the area that wouldve been occupied by the "pill" button that is the deafult display for Apples IOS buttons.
This then also causes problems with "hover" status as when "clicking" does not result in a submit, the button can go into "hover" state and the focus stays on the button..

Quick image comparison below.
First is the CSS button.
Attachment 20602
Second is the IOS "pill" button (caught image as brief flash when hitting css button)

Attachment 20603

the CSS button will only initiate the "submit" when clicked in the area of the pill button.
So how to increase the "pill" button area so that the whole of the css button will function correctly?

4 May 2024, 8:59 AM
#2
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Post #2 by shop_suey

misunderstood

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

14 Jun 2024, 11:33 AM
#3
richard7315 avatar

richard7315

New Zenner

Join Date:
Jul 2017
Location:
West Midlands, UK
Posts:
51
Plugin Contributions:
1

Post #3 by richard7315

Hi Calljj
We have previously found a fix on the forum to stop the pill style buttons from displaying on iphone/ipad.

The following code needs to be added to stylesheet.css

input.submit_button, input.cssButtonHover { -webkit-appearance: none; }

This gives a consistent look across different devices and should make the whole CSS button clickable.

I believe this issue has been fixed in the latest versions of Zen Cart.

I hope this helps.
Richard