Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Migrating the NotificationDialog and integrating with LayerManager #238

Merged

Conversation

tbiethman
Copy link
Contributor

@tbiethman tbiethman commented Jun 29, 2021

Summary

Closes #204

Deployment Link

https://terra-applic-.herokuapp.com/

Testing

Additional Details

Thank you for contributing to Terra.
@cerner/terra

@tbiethman tbiethman self-assigned this Jun 29, 2021
@mjhenkes mjhenkes temporarily deployed to terra-applic-story-204--yzsvsj June 29, 2021 20:17 Inactive
@@ -2,14 +2,13 @@ import React from 'react';
import PropTypes from 'prop-types';
Copy link
Contributor Author

@tbiethman tbiethman Jun 29, 2021

Choose a reason for hiding this comment

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

I recommend viewing this entire file. Git has treated this as change+move of the temporary dev-site file, but the temporary files weren't ever reviewed.

Edit: Seems I finally changed enough for git to treat this as new.

@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import UnsavedChangesPrompt from '@cerner/terra-dev-site/lib/terra-application-temporary/unsaved-changes-prompt';
import UnsavedChangesPrompt from '@cerner/terra-application/lib/unsaved-changes-prompt';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pointing to the official code now, temporary files have been removed.

@mjhenkes mjhenkes temporarily deployed to terra-applic-story-204--yzsvsj June 30, 2021 22:44 Inactive
@mjhenkes mjhenkes temporarily deployed to terra-applic-story-204--yzsvsj July 1, 2021 16:16 Inactive
@mjhenkes mjhenkes temporarily deployed to terra-applic-story-204--yzsvsj July 1, 2021 16:34 Inactive
Comment on lines 239 to 246
<div className={cx('overlay')} />
<div className={cx('notification-dialog')}>
<div tabIndex="-1" ref={initialFocusAnchorRef} />
<div className={cx('notification-dialog-inner-wrapper')}>
<div className={cx('notification-dialog-container')}>
<div className={cx('floating-header-background', variant)} />
<div className={cx('header')}>
<div className={cx('header-content')}>
Copy link
Contributor

Choose a reason for hiding this comment

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

thats alot of divs

@mjhenkes mjhenkes temporarily deployed to terra-applic-story-204--yzsvsj July 2, 2021 17:07 Inactive
tbiethman added 2 commits July 2, 2021 13:48
…ation into story-204-notification-dialog-migration

# Conflicts:
#	packages/terra-application-docs/src/terra-dev-site/test/terra-application/shared/TestPage.jsx
#	packages/terra-application/CHANGELOG.md
@mjhenkes mjhenkes temporarily deployed to terra-applic-story-204--yzsvsj July 2, 2021 19:06 Inactive
* The button text and onclick values of the accept button.
*/
acceptAction: PropTypes.shape({
text: PropTypes.string,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit. Should these sub-items be doc'd?

* @param {Object} containerRef React ref object containing current value of
* the element to trap focus within.
*/
const useFocusTrap = (containerRef) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this. Good work. 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using inert everywhere allows us to keep this pretty simple. Should be able to put it in the new modals as well, I can externalize the hook when that is the case.

@tbiethman tbiethman merged commit 077ceae into terra-application-v2 Jul 2, 2021
@tbiethman tbiethman deleted the story-204-notification-dialog-migration branch July 2, 2021 22:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants