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 examples for raised button #928

Merged
merged 1 commit into from
Nov 27, 2019
Merged

Conversation

aciccarello
Copy link
Contributor

Type: feature

The following has been addressed in the PR:

  • There is a related issue
  • All code matches the style guide
  • Unit tests are included in the PR
  • Any widget variant uses theme.compose like this
  • WidgetProperties are exported

Description:
Adds additional examples for the raised button, matching other button widgets

Related to #876

@dojo-site
Copy link

This pull request has been deployed to:

const factory = create({ icache });

export default factory(function ToggleButton({ middleware: { icache } }) {
const pressed = icache.getOrSet('pressed', false);
Copy link
Contributor

Choose a reason for hiding this comment

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

should we be using the generic form of getOrSet as a best practice?

Copy link
Member

Choose a reason for hiding this comment

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

in this case, the type is implied by the setter @vansimke

Copy link
Contributor

@vansimke vansimke left a comment

Choose a reason for hiding this comment

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

Everything looks good, only one question to consider.

@tomdye tomdye merged commit a9ffcfa into dojo:master Nov 27, 2019
@aciccarello aciccarello deleted the raised-button branch November 27, 2019 16:47
ericos pushed a commit to ericos/widgets that referenced this pull request Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants