microsoft / fluentui-android

MIT License
561 stars 103 forks source link

v2 Basic Card and Pill Button Token Changes #684

Closed Anubhvv closed 4 days ago

Anubhvv commented 1 week ago

Problem

  1. Border Color token of Basic Card is of type Color, so it cannot support gradient brush
  2. Pill Button ignores the text, if it has an icon
  3. Margin related tokens added in Pill Button Tokens

    Root cause

  4. by design
  5. Bug
  6. by design

    Fix

  7. Have convertedBorder Color to Brush type
  8. Fixed by allowing text and icon to co-exist
  9. Added tokens

Validations

(how the change was tested, including both manual and automated tests)

Screenshots

Before After
image image

Pull request checklist

This PR has considered: