-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GR-10830: Add the Clear style to ThumbprintButton #56
base: main
Are you sure you want to change the base?
Conversation
0b446ec
to
c49a7f1
Compare
Hm, is this part of Thumbprint officially? I don't see it in https://thumbprint.design/components/button/usage/. In the past I think I've just used a clickable TextView for cases like this, which might be more semantically accurate. |
Let's check with Erik Goens to see which we want to do -> add it or use a
clickable TextView.
…On Thu, Jan 5, 2023 at 12:31 PM Dominic Zirbel ***@***.***> wrote:
Hm, is this part of Thumbprint officially? I don't see it in
https://thumbprint.design/components/button/usage/. In the past I think
I've just used a clickable TextView for cases like this, which might be
more semantically accurate.
—
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACV5ODOEVJ7Z3EZJZZA3XHTWQ4VTNANCNFSM6AAAAAATSCZ2XU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
From what I see currently, we are using this:
which makes it sound like it just never got added. But it's used 42 times currently in the app. |
I will just add that the benefits of using a Button class are:
|
Fwiw, iOS has had a "LINK" button style for a very long time. |
What
We currently don't have a way to display a "clear" button, meaning a button that doesn't have a background color, nor border.
Even though we do have some clear button currently within the Customer app, the way they are implemented is via the local
ButtonWithDrawable
class using astyle
that is within the Thumbprint library.This PR is for adding more support to the
ThumbprintButton
itself, so we can keep transitioning from the Client appButtonWithDrawable
to theThumbprintButton
How
Thumbprint.Button.Clear
style withinbutton_styles.xml
and use it to create aCLEAR
ThumbprintButtonType
clear
buttonType
attribute so we can set it via XMLTesting
layout.xml
and add aThumbprintButton
with aapp:buttonType="clear"
and check the previewPersonally I tested it by publishing to my local maven repo and used it directly within the client app. Looked good.
Screenshot