Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix iOS zoom in on form fields

Inga Mai938113972f90
diff --git a/app/assets/stylesheets/content/_forms_mobile.sass b/app/assets/stylesheets/content/_forms_mobile.sass
index f3f7f25b0db..578f9806230 100644
--- a/app/assets/stylesheets/content/_forms_mobile.sass
+++ b/app/assets/stylesheets/content/_forms_mobile.sass
@@ -66,7 +66,7 @@
autocomplete-select-decoration
width: 100%
- html.-browser-safari
+ .-browser-safari
// Special rule for mobile safari to prevent zooming into the text field
// when focussed.
select,
@@ -84,5 +84,5 @@
input[type="url"],
input[type="search"],
input[type="tel"],
- input[type="color"]
- font-size: 16px
+ input[type="color"],
+ font-size: 16px !important
diff --git a/frontend/src/app/modules/global_search/input/global-search-input-mobile.component.sass b/frontend/src/app/modules/global_search/input/global-search-input-mobile.component.sass
index 290c8fc47c3..c70f8d70a1e 100644
--- a/frontend/src/app/modules/global_search/input/global-search-input-mobile.component.sass
+++ b/frontend/src/app/modules/global_search/input/global-search-input-mobile.component.sass
@@ -45,8 +45,6 @@ $search-input-height-mobile: 36px
.ng-input input
height: 36px
- // The font-size is necessary to avoid iOS to zoom in when being focused
- font-size: 16px
.top-menu-search--back-button
display: initial