-
Notifications
You must be signed in to change notification settings - Fork 842
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
Move EuiBasicTable's itemId prop out of selection into a top-level prop #830
Merged
chandlerprall
merged 9 commits into
elastic:master
from
chandlerprall:bug/820-table-ids
May 16, 2018
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1f44261
Move EuiBasicTable's itemId prop out of selection into a top-level prop
chandlerprall 41c67ef
changelog
chandlerprall 63a4b0d
add generic proptype validator for associating properties
chandlerprall 9acb46f
added unit test for withRequiredProp
chandlerprall 4bb9e93
Merge branch 'master' into bug/820-table-ids
chandlerprall 93efbd7
re-add deleted proptype, commit with_required_prop's snapshots
chandlerprall d441047
Merge branch 'master' into bug/820-table-ids
chandlerprall b56c9a0
update changelog
chandlerprall 4734056
tweaks in response to PR feedback
chandlerprall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,22 +155,25 @@ EuiBadge.propTypes = { | |
/** | ||
* Will apply an onclick to icon within the badge | ||
*/ | ||
iconOnClick: PropTypes.func, | ||
iconOnClick: EuiPropTypes.withRequiredProp( | ||
PropTypes.func, | ||
'iconOnClickAriaLabel', | ||
'Please provide an aria label to compliment your iconOnClick' | ||
), | ||
|
||
/** | ||
* Aria label applied to the iconOnClick button | ||
*/ | ||
iconOnClickAriaLabel: EuiPropTypes.requiresAriaLabel('iconOnClick'), | ||
iconOnClickAriaLabel: PropTypes.string, | ||
|
||
/** | ||
* Will apply an onclick to the badge itself | ||
*/ | ||
onClick: PropTypes.func, | ||
|
||
/** | ||
* Aria label applied to the onClick button | ||
*/ | ||
onClickAriaLabel: EuiPropTypes.requiresAriaLabel('onClick'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. a bad Cmd+X operation |
||
onClick: EuiPropTypes.withRequiredProp( | ||
PropTypes.func, | ||
'onClickAriaLabel', | ||
'Please provide an aria label to compliment your onClick' | ||
), | ||
|
||
/** | ||
* Accepts either our palette colors (primary, secondary ..etc) or a hex value `#FFFFFF`, `#000`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: "compliment" -> "complement", here and below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also change "aria label" to "aria-label" to be more specific about the prop's name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The prop it's expecting is
iconOnClickAriaLabel
, not specificallyaria-label
. The full warning in the console isThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha! That makes sense, thanks.