ENGLISH·COURSE API
    Preparing search index...

    What the welcome celebrates, and where focus goes once it has closed.

    type EnrollmentWelcomeModalProps = {
        view: CourseForView;
        focusOnClose?: () => void;
    }
    Index

    Properties

    Properties

    view: CourseForView

    The course the learner just enrolled in.

    focusOnClose?: () => void

    Moves focus once the dialog has closed. The Enroll button that opened the dialog is gone by then — the page replaced it with the start link — so the opener says where focus belongs instead of the dialog guessing.