Skip to content

Buttons have incorrect styles in 7.1.0 #1874

Closed
@edenman

Description

@edenman

Step 2: Describe your environment

  • FirebaseUI version: 7.1.0

Step 3: Describe the problem:

Steps to reproduce:

  1. Customize button appearance by overriding styles
  2. Update from 6.2 to 7.1
  3. Buttons are no longer styled appropriately

Here's how I'm doing the customization:

<style name="FirebaseUI.Button.AccountChooser.GoogleButton">
  <item name="drawableStartCompat">@drawable/ic_sign_in_google</item>
  <item name="android:background">@color/auth_button_bg_google</item>
  <item name="android:textColor">@color/actually_white</item>
</style>

I checked and the style hasn't changed names or anything:

<style name="FirebaseUI.Button.AccountChooser.EmailButton">

Looks like this is happening because of a switch from com.firebase.ui.auth.util.ui.SupportVectorDrawablesButton to Button in 5342e3d . I can get it working again if I use drawableLeft but obviously that's not ideal for RTL users. What was the motivation for that change? It seems to have even broken the default UI. If I remove all my style customizations, here's what the screen looks like:
Screenshot_1606165952

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions