Skip to content

Commit c0e8b4c

Browse files
committed
Merge branch '4.0.0-dev' into remove-html-markup-for-woo
2 parents 4201c9c + 665c636 commit c0e8b4c

124 files changed

Lines changed: 3796 additions & 1073 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/core/scss/mixins/_buttons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
box-shadow: $tutor-button-border-shadow;
2222
@include tutor-transition();
2323

24-
svg {
24+
svg:not([class]) {
2525
color: currentColor;
2626
}
2727

assets/core/scss/themes/_dark.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
@use '../tokens' as *;
55

6-
[data-theme='dark'] {
6+
[data-tutor-theme='dark'] {
77
// =============================================================================
88
// SURFACE COLORS
99
// =============================================================================

assets/core/scss/themes/_light.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@use '../tokens' as *;
55

66
:root,
7-
[data-theme="light"] {
7+
[data-tutor-theme="light"] {
88
// =============================================================================
99
// SURFACE COLORS
1010
// =============================================================================

assets/core/ts/components/calendar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const TUTOR_CALENDAR_VALUES = {
7171
apply: 'apply',
7272
clear: 'clear',
7373
calendarZIndex: '100001',
74-
themeAttrDetect: 'body[data-theme]',
74+
themeAttrDetect: 'body[data-tutor-theme]',
7575
calendarClasses: 'vc tutor-vc-calendar',
7676
} as const;
7777

assets/core/ts/components/modal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const modal = (config: ModalConfig = { ...DEFAULT_CONFIG }) => ({
9696
modal.classList.add('tutor-modal-content');
9797

9898
return {
99-
'x-trap.noscroll.inert.noautofocus': 'open',
99+
'x-trap.noscroll.inert': 'open',
100100
'@click.outside': this.isCloseable ? 'close()' : '',
101101
'x-show': 'open',
102102
'x-transition:enter': 'tutor-modal-content-enter',

assets/core/ts/components/wp-editor.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,18 @@ export const wpEditor = (config: WPEditorConfig): WPEditorComponent => {
112112
editor.on('focus', () => {
113113
this.$el.dispatchEvent(new CustomEvent(TUTOR_CUSTOM_EVENTS.WP_EDITOR_FOCUS, { bubbles: true }));
114114
});
115+
116+
// Handle Cmd/Ctrl + Enter for form submission
117+
editor.on('keydown', (e: KeyboardEvent) => {
118+
if ((e.metaKey || e.ctrlKey) && e.keyCode === 13) {
119+
e.preventDefault();
120+
this.syncEditorToForm();
121+
const formEl = this.$el.closest('form');
122+
if (formEl) {
123+
formEl.requestSubmit();
124+
}
125+
}
126+
});
115127
} else {
116128
// Retry after a short delay
117129
setTimeout(checkEditor, 100);

assets/core/ts/services/Preference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PreferenceService {
99
private readonly BASE_FONT_SIZE = 16;
1010
private readonly SCALE_PERCENTAGE_BASE = 100;
1111
private readonly STYLE_ID = 'tutor-font-scale';
12-
private readonly DATA_THEME_ATTR = 'data-theme';
12+
private readonly DATA_THEME_ATTR = 'data-tutor-theme';
1313

1414
constructor() {
1515
this.mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');

assets/icons/learning-mood.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/icons/quiz-number.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/icons/quiz-radio.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)