Skip to content

Commit c92ae60

Browse files
jonschoningNSBum
andauthored
Fixed login and add button colour on iOSUpdate (#65)
* Fixed login and add button colour on iOS On iOS the login and add buttons (add bookmark, add note) text was not visible, showing only the outline of the button. This change sets an excplicit colour for the button text `black-70`. The choice among tachyon classes here is arbitrary and could be styled differently according to preference. * set submit button fg color; update js output --------- Co-authored-by: NSBum <duncan.alan@me.com>
1 parent 50fbf47 commit c92ae60

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

purs/src/Component/Add.purs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ addbmark b' =
130130
]
131131
, tr_
132132
[ td_ [ ]
133-
, td_ [ input [ type_ InputSubmit , class_ "ph3 pv2 input-reset ba b--navy bg-transparent pointer f6 dib mt1 dim"
133+
, td_ [ input [ type_ InputSubmit , class_ "ph3 pv2 input-reset black ba b--navy bg-transparent pointer f6 dib mt1 dim"
134134
, value (if bm.bid > 0 then "update bookmark" else "add bookmark") ] ]
135135
]
136136
]
137137
]
138138
]
139139

140-
display_exists _ =
140+
display_exists _ =
141141
div [ class_ "alert" ]
142142
[ text "previously saved "
143143
, span [ class_ "link f7 dib gray pr3" , title (maybe bm.time snd mmoment) ]
@@ -148,12 +148,12 @@ addbmark b' =
148148
, span ([ class_ "confirm red" ] <> guard (not s.deleteAsk) [ attr "hidden" "hidden" ])
149149
[ button [ type_ ButtonButton, onClick \_ -> BDeleteAsk false] [ text "cancel / " ]
150150
, button [ type_ ButtonButton, onClick \_ -> BDestroy, class_ "red" ] [ text "destroy" ]
151-
]
151+
]
152152
]
153153
]
154154
]
155155

156-
alert_notification alert_text _ =
156+
alert_notification alert_text _ =
157157
div [ class_ "alert alert-err" ] [ text alert_text ]
158158

159159
display_destroyed _ = p [ class_ "red"] [text "you killed this bookmark"]
@@ -195,7 +195,7 @@ addbmark b' =
195195

196196
handleAction (BEditSubmit e) = do
197197
liftEffect (preventDefault e)
198-
edit_bm <- use _edit_bm
198+
edit_bm <- use _edit_bm
199199
_apiError .= Nothing
200200
H.liftAff (editBookmark edit_bm) >>= case _ of
201201
Left affErr -> do

static/js/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/js/app.min.js.gz

4 Bytes
Binary file not shown.

static/js/app.min.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/js/app.min.js.map.gz

20 Bytes
Binary file not shown.

templates/change-password.hamlet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
<label .db.fw6.lh-copy.f6 for="newpassword">New Password
1616
<input #newpassword .w-100.pa1.mb2.ba.b--black-20 required name="newpassword" type="password">
1717

18-
<input class="ph3 pv2 input-reset ba b--navy bg-transparent pointer f6 dib mt3 dim" type="submit" value="Save Changes">
18+
<input class="ph3 pv2 input-reset black ba b--navy bg-transparent pointer f6 dib mt3 dim" type="submit" value="Save Changes">

templates/login.hamlet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div>
1515
<label .db.fw6.lh-copy.f6 for="password">Password
1616
<input #password .w-100.pa1.mb2.ba.b--black-20 name="password" type="password">
17-
18-
<input class="ph3 pv2 input-reset ba b--navy bg-transparent pointer f6 dib mt3 dim" type="submit" value="Log In">
17+
18+
<input class="ph3 pv2 input-reset black ba b--navy bg-transparent pointer f6 dib mt3 dim" type="submit" value="Log In">
1919

2020
<script> document.body.classList.add("bg-near-white");

0 commit comments

Comments
 (0)