Skip to content

Commit

Permalink
switching to h1
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Dec 21, 2022
1 parent ca32f39 commit 41082b9
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,12 @@ export const DeleteSpaceAwareItemCheckModal: FC<Props> = ({
<>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.deleteSpaceAwareItemCheckModal.modalTitle"
defaultMessage="Checking space permissions"
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const Modal = ({ close, title, children }) => (
<EuiModal onClose={close} style={{ width: '800px' }}>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>{title}</h2>
<h1>{title}</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const AddToDashboardControl: FC<AddToDashboardControlProps> = ({
<EuiModal onClose={onClose.bind(null, undefined)} data-test-subj="mlAddToDashboardModal">
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>{title}</h2>
<h1>{title}</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>
<EuiModalBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const CloseJobsConfirmModal: FC<Props> = ({
<EuiModal data-test-subj="mlCloseJobsConfirmModal" onClose={closeModal}>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>{title}</h2>
<h1>{title}</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>
<EuiModalBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const StopDatafeedsConfirmModal: FC<Props> = ({
<EuiModal data-test-subj="mlStopDatafeedsConfirmModal" onClose={closeModal}>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>{title}</h2>
<h1>{title}</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>
<EuiModalBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const DeleteJobModal: FC<Props> = ({ setShowFunction, unsetShowFunction,
<EuiModal data-test-subj="mlDeleteJobConfirmModal" onClose={closeModal}>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.jobsList.deleteJobModal.deleteJobsTitle"
defaultMessage="Delete {jobsCount, plural, one {{jobId}} other {# jobs}}?"
Expand All @@ -96,7 +96,7 @@ export const DeleteJobModal: FC<Props> = ({ setShowFunction, unsetShowFunction,
jobId: jobIds[0],
}}
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>
<EuiModalBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@ class CustomUrlsUI extends Component<CustomUrlsProps, CustomUrlsState> {
>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.jobsList.editJobFlyout.customUrls.addCustomUrlButtonLabel"
defaultMessage="Add custom URL"
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const ResetJobModal: FC<Props> = ({ setShowFunction, unsetShowFunction, r
<EuiModal data-test-subj="mlResetJobConfirmModal" onClose={closeModal}>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.jobsList.resetJobModal.resetJobsTitle"
defaultMessage="Reset {jobsCount, plural, one {{jobId}} other {# jobs}}?"
Expand All @@ -94,7 +94,7 @@ export const ResetJobModal: FC<Props> = ({ setShowFunction, unsetShowFunction, r
jobId: jobIds[0],
}}
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>
<EuiModalBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class StartDatafeedModal extends Component {
>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.jobsList.startDatafeedModal.startJobsTitle"
defaultMessage="Start {jobsCount, plural, one {{jobId}} other {# jobs}}"
Expand All @@ -158,7 +158,7 @@ export class StartDatafeedModal extends Component {
jobId: startableJobs[0].id,
}}
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ export const ChangeDataViewModal: FC<Props> = ({ onClose }) => {
<EuiModal onClose={onClose} data-test-subj="mlJobMgmtImportJobsFlyout">
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.newJob.wizard.datafeedStep.dataView.step0.title"
defaultMessage="Change data view"
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export const ModalWrapper: FC<Props> = ({ onCreateClick, closeModal, saveEnabled
>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.newJob.wizard.pickFieldsStep.advancedDetectorModal.title"
defaultMessage="Create detector"
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ export class ImportModal extends Component {
<EuiFlexGroup direction="column" gutterSize="none">
<EuiFlexItem grow={false}>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.calendarsEdit.eventsTable.importEventsTitle"
defaultMessage="Import events"
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiFlexItem>
<EuiFlexItem grow={false}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@ export class NewEventModal extends Component {
>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.calendarsEdit.newEventModal.createNewEventTitle"
defaultMessage="Create new event"
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ export function Modal(props) {
<EuiModal onClose={props.close} maxWidth={860} data-test-subj="mlModalForecast">
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.timeSeriesExplorer.forecastingModal.forecastingTitle"
defaultMessage="Forecasting"
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const DeleteModelsModal: FC<DeleteModelsModalProps> = ({ modelIds, onClos
>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.trainedModels.modelsList.deleteModal.header"
defaultMessage="Delete {modelsCount, plural, one {{modelId}} other {# models}}?"
Expand All @@ -78,7 +78,7 @@ export const DeleteModelsModal: FC<DeleteModelsModalProps> = ({ modelIds, onClos
modelsCount: modelIds.length,
}}
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export const StartUpdateDeploymentModal: FC<StartDeploymentModalProps> = ({
<EuiFlexGroup justifyContent={'spaceBetween'}>
<EuiFlexItem grow={false}>
<EuiTitle size={'s'}>
<h2>
<h1>
{isUpdate ? (
<FormattedMessage
id="xpack.ml.trainedModels.modelsList.updateDeployment.modalTitle"
Expand All @@ -303,7 +303,7 @@ export const StartUpdateDeploymentModal: FC<StartDeploymentModalProps> = ({
values={{ modelId }}
/>
)}
</h2>
</h1>
</EuiTitle>
</EuiFlexItem>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export const AnomalyChartsInitializer: FC<AnomalyChartsInitializerProps> = ({
>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.anomalyChartsEmbeddable.setupModal.title"
defaultMessage="Anomaly explorer charts configuration"
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ export const AnomalySwimlaneInitializer: FC<AnomalySwimlaneInitializerProps> = (
<EuiModal initialFocus="[name=panelTitle]" onClose={onCancel}>
<EuiModalHeader>
<EuiModalHeaderTitle>
<h2>
<h1>
<FormattedMessage
id="xpack.ml.swimlaneEmbeddable.setupModal.title"
defaultMessage="Anomaly swim lane configuration"
/>
</h2>
</h1>
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down

0 comments on commit 41082b9

Please sign in to comment.