- 
                Notifications
    
You must be signed in to change notification settings  - Fork 640
 
improve banner wrapping #6961
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
          
     Closed
      
      
    
  
     Closed
                    improve banner wrapping #6961
Changes from 15 commits
      Commits
    
    
            Show all changes
          
          
            17 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      9bfb9e9
              
                improve banner wrapping
              
              
                CON3JITO 3567a9c
              
                updated snapshots
              
              
                CON3JITO cbe95e4
              
                Merge branch 'main' into con3jito/update-banner-wrapping
              
              
                CON3JITO c0b6ffb
              
                test
              
              
                CON3JITO 80d5f09
              
                test
              
              
                CON3JITO d7ece0b
              
                preview test
              
              
                CON3JITO d001c1e
              
                updated css
              
              
                CON3JITO 58debb6
              
                updated changelog
              
              
                CON3JITO 77fa76a
              
                lint
              
              
                CON3JITO 8411fad
              
                Merge branch 'main' into con3jito/update-banner-wrapping
              
              
                CON3JITO 2921b1d
              
                screenshot
              
              
                CON3JITO 26881a7
              
                added length function
              
              
                CON3JITO 6ddd477
              
                screenshot
              
              
                CON3JITO c2e3524
              
                Merge branch 'main' into con3jito/update-banner-wrapping
              
              
                CON3JITO c94bea8
              
                Merge branch 'main' into con3jito/update-banner-wrapping
              
              
                CON3JITO 702ab52
              
                gave magic numbers var names
              
              
                CON3JITO 2ea447c
              
                update changeset
              
              
                CON3JITO 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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| '@primer/react': patch | ||
| --- | ||
| 
     | 
||
| Banner: Improve button layout wrapping behavior with CSS container queries | ||
| 
     | 
||
| - Banners with titles now always wrap action buttons for better readability | ||
| - Banners with dismiss buttons always wrap action buttons regardless of content | ||
| - Banners without titles or dismiss buttons use container queries for responsive wrapping based on content length | 
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -497 Bytes
                  (97%)
              
          
        
  ...hots/Banner-DismissibleWithHiddenTitleAndActions-primer-breakpoint-sm-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -449 Bytes
                  (97%)
              
          
        
  ...hots/Banner-DismissibleWithHiddenTitleAndActions-primer-breakpoint-xs-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -490 Bytes
                  (96%)
              
          
        
  ...ner-DismissibleWithHiddenTitleAndSecondaryAction-primer-breakpoint-sm-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -441 Bytes
                  (97%)
              
          
        
  ...ner-DismissibleWithHiddenTitleAndSecondaryAction-primer-breakpoint-xs-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -819 Bytes
                  (97%)
              
          
        
  .../components/Banner.test.ts-snapshots/Banner-InSidebar-dark-colorblind-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -944 Bytes
                  (97%)
              
          
        
  ...mponents/Banner.test.ts-snapshots/Banner-InSidebar-dark-high-contrast-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -819 Bytes
                  (97%)
              
          
        
  ...t/snapshots/components/Banner.test.ts-snapshots/Banner-InSidebar-dark-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -819 Bytes
                  (97%)
              
          
        
  .../components/Banner.test.ts-snapshots/Banner-InSidebar-dark-tritanopia-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -803 Bytes
                  (97%)
              
          
        
  ...components/Banner.test.ts-snapshots/Banner-InSidebar-light-colorblind-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -546 Bytes
                  (98%)
              
          
        
  ...ponents/Banner.test.ts-snapshots/Banner-InSidebar-light-high-contrast-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -803 Bytes
                  (97%)
              
          
        
  .../snapshots/components/Banner.test.ts-snapshots/Banner-InSidebar-light-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -803 Bytes
                  (97%)
              
          
        
  ...components/Banner.test.ts-snapshots/Banner-InSidebar-light-tritanopia-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -687 Bytes
                  (96%)
              
          
        
  ...omponents/Banner.test.ts-snapshots/Banner-WithActions-dark-colorblind-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -586 Bytes
                  (96%)
              
          
        
  ...ts/components/Banner.test.ts-snapshots/Banner-WithActions-dark-dimmed-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -719 Bytes
                  (95%)
              
          
        
  ...onents/Banner.test.ts-snapshots/Banner-WithActions-dark-high-contrast-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -687 Bytes
                  (96%)
              
          
        
  ...snapshots/components/Banner.test.ts-snapshots/Banner-WithActions-dark-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -687 Bytes
                  (96%)
              
          
        
  ...omponents/Banner.test.ts-snapshots/Banner-WithActions-dark-tritanopia-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -629 Bytes
                  (96%)
              
          
        
  ...mponents/Banner.test.ts-snapshots/Banner-WithActions-light-colorblind-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -694 Bytes
                  (96%)
              
          
        
  ...nents/Banner.test.ts-snapshots/Banner-WithActions-light-high-contrast-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -629 Bytes
                  (96%)
              
          
        
  ...napshots/components/Banner.test.ts-snapshots/Banner-WithActions-light-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -629 Bytes
                  (96%)
              
          
        
  ...mponents/Banner.test.ts-snapshots/Banner-WithActions-light-tritanopia-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file modified
          
            BIN
              
                -869 Bytes
                  (94%)
              
          
        
  ...ents/Banner.test.ts-snapshots/Banner-WithActions-primer-breakpoint-sm-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file added
          
            BIN
              
                +13.6 KB
              
          
        
  ...est.ts-snapshots/Banner-WithHiddenTitleAndActionsLong-dark-colorblind-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file added
          
            BIN
              
                +13.8 KB
              
          
        
  ...er.test.ts-snapshots/Banner-WithHiddenTitleAndActionsLong-dark-dimmed-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file added
          
            BIN
              
                +13.7 KB
              
          
        
  ....ts-snapshots/Banner-WithHiddenTitleAndActionsLong-dark-high-contrast-linux.png
  
  
      
      
   
        
      
      
    
      
      Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
        
          
  
    
      
          Binary file added
          
            BIN
              
                +13.6 KB
              
          
        
  ...ts/Banner.test.ts-snapshots/Banner-WithHiddenTitleAndActionsLong-dark-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +13.6 KB
              
          
        
  ...est.ts-snapshots/Banner-WithHiddenTitleAndActionsLong-dark-tritanopia-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +14 KB
              
          
        
  ...st.ts-snapshots/Banner-WithHiddenTitleAndActionsLong-light-colorblind-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +13.7 KB
              
          
        
  ...ts-snapshots/Banner-WithHiddenTitleAndActionsLong-light-high-contrast-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +14 KB
              
          
        
  ...s/Banner.test.ts-snapshots/Banner-WithHiddenTitleAndActionsLong-light-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +14 KB
              
          
        
  ...st.ts-snapshots/Banner-WithHiddenTitleAndActionsLong-light-tritanopia-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +13 KB
              
          
        
  ...s-snapshots/Banner-WithHiddenTitleAndActionsLong-primer-breakpoint-sm-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +12.6 KB
              
          
        
  ...s-snapshots/Banner-WithHiddenTitleAndActionsLong-primer-breakpoint-xs-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +9.51 KB
              
          
        
  ...st.ts-snapshots/Banner-WithHiddenTitleAndActionsShort-dark-colorblind-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +9.59 KB
              
          
        
  ...r.test.ts-snapshots/Banner-WithHiddenTitleAndActionsShort-dark-dimmed-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +9.54 KB
              
          
        
  ...ts-snapshots/Banner-WithHiddenTitleAndActionsShort-dark-high-contrast-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +9.51 KB
              
          
        
  ...s/Banner.test.ts-snapshots/Banner-WithHiddenTitleAndActionsShort-dark-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +9.51 KB
              
          
        
  ...st.ts-snapshots/Banner-WithHiddenTitleAndActionsShort-dark-tritanopia-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +9.67 KB
              
          
        
  ...t.ts-snapshots/Banner-WithHiddenTitleAndActionsShort-light-colorblind-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +9.58 KB
              
          
        
  ...s-snapshots/Banner-WithHiddenTitleAndActionsShort-light-high-contrast-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +9.67 KB
              
          
        
  .../Banner.test.ts-snapshots/Banner-WithHiddenTitleAndActionsShort-light-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +9.67 KB
              
          
        
  ...t.ts-snapshots/Banner-WithHiddenTitleAndActionsShort-light-tritanopia-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +8.63 KB
              
          
        
  ...-snapshots/Banner-WithHiddenTitleAndActionsShort-primer-breakpoint-sm-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file added
          
            BIN
              
                +8.12 KB
              
          
        
  ...-snapshots/Banner-WithHiddenTitleAndActionsShort-primer-breakpoint-xs-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
        
          
  
    
      
          Binary file modified
          
            BIN
              
                +9 Bytes
                  (100%)
              
          
        
  ...SelectPanel.test.ts-snapshots/SelectPanel-features--with-notice-light-linux.png
  
  
      
      
   
        
      
      
    
      
      Oops, something went wrong.
      
    
  
  
    
      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
    
  
  
    
              
      
      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.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.