-
Notifications
You must be signed in to change notification settings - Fork 4.6k
List View: Use heading content for button label text if available #41855
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
Merged
andrewserong
merged 14 commits into
trunk
from
try/use-heading-content-as-label-in-list-view
Jul 11, 2022
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b50ec2a
List View: Use heading content for button label text if available
andrewserong ff204f6
Use __experimentalLabel and a custom list-view context for the label …
andrewserong f243ea4
Remove whitespace change
andrewserong 3905d86
Roll back to earlier approach, tweak layout to work out what to do ab…
andrewserong 4ffc7d8
Revert whitespace change
andrewserong 319400e
Try switching back to using 'list-view' context
andrewserong ddf9e64
Update XPath for getListViewBlocks so that the span can be any nested…
andrewserong f5b3cb8
Try to fix gallery and navigation tests to be less strict about where…
andrewserong a940738
Slightly improve specificity of XPath queries, and ensure getListView…
andrewserong b514956
Tidy up useBlockDisplayTitle function signature and wrapper margins
andrewserong 73ae70a
Increase max-width of wrapper, include lock icon within wrapper space
andrewserong 04ab515
Tweak heading sizing to ensure it uses available space without unexpe…
andrewserong 71cbd7c
Move min-width up to the parent wrapper, reduce right padding on the …
andrewserong 26d7799
Use flex 1 instead of width percentage, use a min function on the anc…
andrewserong 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
I've switched the function signature here (and all usage) over to a props object so that we don't need to pass
undefinedtomaximumLengthin order to use thecontextstring. I think it should also help us a bit if in follow- ups we want to pass additional or more complex props (like if we wanted to supportellipsizeModedirectly in this hook.