- 
                Notifications
    
You must be signed in to change notification settings  - Fork 861
 
[Flyout System] Make session logic truly opt-in #9163
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
base: main
Are you sure you want to change the base?
Conversation
7e80d70    to
    8231b64      
    Compare
  
    | 
           This PR contains breaking changes. The opener of this pull request is asked to perform the following due diligence steps below, to assist EUI in our next Kibana upgrade: 
  | 
    
f98c459    to
    44c5fdb      
    Compare
  
    
          💚 Build Succeeded | 
    
          💚 Build Succeeded
  | 
    
| 
           I reviewed and tested this PR and found that the current behavior of the   | 
    
Summary
Makes the Flyout System truly opt-in by changing the
sessionvalue default frominherittonever.EuiFlyoutsessionpropThe default has been changed from
inherittoneverCloses #9158.
Why are we making this change?
The default of inherit was problematic. It meant that a flyout with no session value added would automatically become a child if a session flyout is active. This would be a problem in Kibana, where all flyouts currently have no session value. Work would be needed to address the problem by adding session="start" on them to avoid possible bugs, which means the default logic planned would amount to a breaking change.
Impact to users
BREAKING CHANGE - the default of
sessionhas been changed tonever.The default value of
EuiFlyoutsessionprop is changing frominherittonever. This makes the flyout session management system truly opt-in: a flyout that has not been modified and has nosessionprop set will not become a child flyout of an active main flyout and will continue to act as a regular flyout. Flyouts will only become a child of when they have thesessionvalue set toinherit.Not changed: if a flyout has
session="inherit"and there is no main flyout, it will behave as a regular flyout.To continue the previous behavior of a flyout rendered as a child, you can explicitly set the
sessionprop toinherit.Usages in Kibana that will need to be updated: none
QA
Remove or strikethrough items that do not apply to your PR.
General checklist
[ ] Checked in both light and dark modes[ ] Checked in both MacOS and Windows high contrast modes[ ] Checked in mobile[ ] Checked in Chrome, Safari, Edge, and Firefox[ ] Checked for accessibility including keyboard-only and screenreader modes@defaultif default values are missing) and playground toggles[ ] Updated visual regression tests[ ] If the changes unblock an issue in a different repo, smoke tested carefully (see Testing EUI features in Kibana ahead of time)[ ] If applicable, file an issue to update EUI's Figma library with any corresponding UI changes. (This is an internal repo, if you are external to Elastic, ask a maintainer to submit this request)