Skip to content

feat(shell): Add slots for Modal and Alert #5983

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
merged 15 commits into from
Dec 16, 2022

Conversation

macandcheese
Copy link
Contributor

@macandcheese macandcheese commented Dec 10, 2022

Related Issue:

Proposed as part of Shell / Layout enhancements: https://confluencewikidev.esri.com/pages/viewpage.action?pageId=222267264 (VPN needed)

Summary

This is a draft PR to add two new slots to calcite-shell: modal and alerts.

This pattern was proposed as part of our upcoming Shell / layout improvements, and would be leveraged by the upcoming proposed calcite-sheet component.

When expected components are slotted into named slots, conditional styles are applied to constrain their extent to that of the calcite-shell (including covering the existing header and footer slots). This is useful in many cases, specifically when the calcite-shell is embedded amongst other content, like tutorials, documentation pages, or any place the user experience is not a completely full-screen calcite-shell.

When these components are not slotted into the new calcite-shell slots - their behavior remains unchanged.

A demo is available locally at /demos/shell/basic-slotted-elements.html

cc @asangma @mitc7862

Screen recording of proposed behavior:

Screen.Recording.2022-12-12.at.6.14.15.PM.mov

@macandcheese macandcheese added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Dec 13, 2022
@macandcheese macandcheese marked this pull request as ready for review December 13, 2022 23:25
@macandcheese macandcheese requested a review from a team as a code owner December 13, 2022 23:25
@macandcheese macandcheese force-pushed the macandcheese/add-shell-slot-alerts branch from 9de0272 to a6fc4cc Compare December 15, 2022 23:22
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @macandcheese! 🧀

@macandcheese macandcheese merged commit d824bf7 into master Dec 16, 2022
@macandcheese macandcheese deleted the macandcheese/add-shell-slot-alerts branch December 16, 2022 19:29
@github-actions github-actions bot added this to the 2023 January Priorities milestone Dec 16, 2022
benelan added a commit that referenced this pull request Dec 16, 2022
* master: (36 commits)
  1.0.0-next.696
  feat(tip,tip-manager): add built-in translations (#6074)
  1.0.0-next.695
  fix(icon, graphic, loader): Set aria-hidden on internal svg elements (#6069)
  1.0.0-next.694
  refactor(modal)!: Renamed CSS variable (#6078)
  1.0.0-next.693
  refactor(color-picker-hex-input)!: removed `intl*` properties (#6063)
  1.0.0-next.692
  feat(shell): Add slots for Modal and Alert (#5983)
  1.0.0-next.691
  refactor(input-date-picker)!: Removed deprecated start, startAsDate, end, endAsDate properties (#6076)
  1.0.0-next.690
  fix(combobox): Fix error when typing a custom value (#6071)
  1.0.0-next.689
  fix(rating): 5312 improve user interface (#5948)
  chore: Clean outdated properties (#6073)
  docs: update component READMEs (#6072)
  chore: Update interface references (#6068)
  chore(action): Clean up action appearance references (#6067)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues tied to a new feature or request. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants