Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const CSS_SELECTORS_TO_EXCLUDE_ON_CLICK_OUTSIDE = [
'[data-info-popover]',
'[data-nextjs-devtools-panel-overlay]',
'[data-nextjs-devtools-panel-footer]',
'[data-nextjs-error-overlay-footer]',
Copy link
Member

Choose a reason for hiding this comment

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

Why not just use the existing .error-overlay-footer?

Copy link
Member Author

Choose a reason for hiding this comment

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

The classname could change over time (e.g., we decide to use Tailwind) compared to the data- attribute, so I think the data- attribute may serve better to target the element.

No strong push on this, though.

]

const Dialog: React.FC<DialogProps> = function Dialog({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type ErrorOverlayFooterProps = {

export function ErrorOverlayFooter({ errorCode }: ErrorOverlayFooterProps) {
return (
<footer className="error-overlay-footer">
<footer data-nextjs-error-overlay-footer className="error-overlay-footer">
{errorCode ? (
<ErrorFeedback className="error-feedback" errorCode={errorCode} />
) : null}
Expand Down
Loading