Skip to content
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

Add muted prop on rowComp() #278

Merged
merged 3 commits into from
Jul 17, 2020
Merged

Conversation

chenesan
Copy link
Contributor

Purpose

Asana: https://app.asana.com/0/347798529122928/1179698171481649

下列的 component 會新增 muted prop,mutedtrue 時,會有 disabled 的樣式,但 click 時仍會觸發事件。

  • <Button>
  • <Checkbox>
  • <SearchInput>
  • <Switch>
  • <TextInput>
  • <TextLabel>
  • <ListRow>

實作上就是讓 rowComp() mixin 可以吃 muted,新增 .gyp-state-muted 的樣式,參照 .gyp-state-disabled 但拿掉 pointer-events: none 的限制。

Changes

Risk

Usually none, if you have any please write it here.

TODOs

  • Describe what should be done outside of this PR
  • Maybe in other PRs or some manual actions.

@chenesan chenesan force-pushed the feature/add-muted-prop-on-rowComp branch from a3eb829 to 041fe26 Compare July 13, 2020 09:47
@chenesan chenesan marked this pull request as ready for review July 13, 2020 09:47
@chenesan chenesan self-assigned this Jul 15, 2020
Copy link
Contributor

@zhusee2 zhusee2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@benny0642 benny0642 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chenesan chenesan merged commit f6b9b64 into develop Jul 17, 2020
@chenesan chenesan deleted the feature/add-muted-prop-on-rowComp branch July 17, 2020 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants