Skip to content

Add slots for sticky-positioned elements before and after the main content block

Duggan, John requested to merge fixedtabs into main

Summary of Changes

This adds two slots to our Trame layout, pre_content and post_content. These two slots allow the developer to place sticky-positioned elements before and after the main page contents, respectively.

The example application and README have been updated to demonstrate usage of these slots.

Checklist

  • The MR has a clear and concise title
  • Code is self-documented and follows style guidelines.
  • Automated tests are written and pass successfully.
  • Regression tests (e.g. manually triggered system tests, manual GUI/tool tests, ...) are performed to make sure the MR does not break anything (when applicable)
  • Readme file is present and up-to-date.

Documentation Updates

Additional Notes

This is necessary to resolve ndip/trame-apps/sans-reduction-gui#37 (closed) such that the solution can be reapplied to other Trame apps consistently.

I recommend reviewing https://developer.mozilla.org/en-US/docs/Web/CSS/position. It's important that these slots are positioned according to the normal document flow or else the top of the main page contents will be rendered behind them.

Edited by Duggan, John

Merge request reports

Loading