Skip to content

MenuBase: disabled items should have the correct cursor (T1327513)#33415

Merged
pharret31 merged 6 commits intoDevExpress:26_1from
pharret31:26_1_4050-t1327513---menu---disabled-menu-items-have-the-pointer-cursor
Apr 27, 2026
Merged

MenuBase: disabled items should have the correct cursor (T1327513)#33415
pharret31 merged 6 commits intoDevExpress:26_1from
pharret31:26_1_4050-t1327513---menu---disabled-menu-items-have-the-pointer-cursor

Conversation

@pharret31
Copy link
Copy Markdown
Contributor

No description provided.

@pharret31 pharret31 self-assigned this Apr 27, 2026
@pharret31 pharret31 added the 26_1 label Apr 27, 2026
Copilot AI review requested due to automatic review settings April 27, 2026 09:50
@pharret31 pharret31 requested a review from a team as a code owner April 27, 2026 09:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates MenuBase styling so disabled menu items use the correct cursor, and adds QUnit coverage for the expected cursor behavior (T1327513).

Changes:

  • Adjusts _menuBase.scss to apply cursor: pointer on .dx-menu-item and cursor: default on disabled items.
  • Adds QUnit tests validating cursor style for enabled, disabled, and runtime-disabled menu items.
  • Loads Fluent theme CSS in the MenuBase test file so cursor styles are available in test runs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets/menuBase.tests.js Adds cursor-style QUnit tests and imports Fluent theme CSS for style assertions.
packages/devextreme-scss/scss/widgets/base/_menuBase.scss Moves pointer cursor styling to .dx-menu-item and overrides it for disabled items.

Comment thread packages/devextreme-scss/scss/widgets/base/_menuBase.scss Outdated
Comment thread packages/devextreme/testing/tests/DevExpress.ui.widgets/menuBase.tests.js Outdated
dmlvr
dmlvr previously approved these changes Apr 27, 2026
dmlvr
dmlvr previously approved these changes Apr 27, 2026
Copilot AI review requested due to automatic review settings April 27, 2026 12:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates MenuBase styling and tests to ensure disabled menu items show the correct mouse cursor, aligning UI behavior with ticket T1327513.

Changes:

  • Adjusted MenuBase base SCSS to apply cursor: pointer on menu items and cursor: default for disabled states.
  • Added QUnit coverage for cursor behavior on enabled/disabled items and for menus disabled via the disabled option.
  • Loaded Fluent theme CSS in the MenuBase test suite to make computed cursor assertions reliable.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets/menuBase.tests.js Adds QUnit tests validating cursor style for enabled vs disabled menu items (including runtime disable).
packages/devextreme-scss/scss/widgets/base/_menuBase.scss Moves pointer cursor styling to .dx-menu-item and adds disabled-state cursor overrides; sets default cursor on submenu container.

Comment thread packages/devextreme-scss/scss/widgets/base/_menuBase.scss
Comment thread packages/devextreme/testing/tests/DevExpress.ui.widgets/menuBase.tests.js Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a UI styling issue in MenuBase where disabled menu items should display the correct mouse cursor, and adds regression tests to validate cursor behavior.

Changes:

  • Added QUnit coverage for cursor style on enabled/disabled MenuBase items (including runtime disabling and menu-level disabling).
  • Updated base MenuBase SCSS to apply cursor: pointer on menu items and cursor: default for disabled states, plus default cursor for submenu containers.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets/menuBase.tests.js Adds cursor-style regression tests (and imports Fluent theme CSS for style assertions).
packages/devextreme-scss/scss/widgets/base/_menuBase.scss Moves pointer cursor to .dx-menu-item, sets default cursor for disabled menu items, and sets submenu cursor to default.

Comment thread packages/devextreme-scss/scss/widgets/base/_menuBase.scss
Comment thread packages/devextreme/testing/tests/DevExpress.ui.widgets/menuBase.tests.js Outdated
@EugeniyKiyashko EugeniyKiyashko self-requested a review April 27, 2026 13:54
Copilot AI review requested due to automatic review settings April 27, 2026 14:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses T1327513 by ensuring disabled MenuBase items display the correct mouse cursor (default arrow instead of pointer), aligning MenuBase cursor behavior with disabled state expectations across themes.

Changes:

  • Updated MenuBase base SCSS so the pointer cursor is applied to .dx-menu-item (not the items container), and disabled states force cursor: default.
  • Added QUnit markup tests covering cursor behavior for enabled items, disabled items, runtime disabling, fully-disabled menus, and URL items.
  • Ensured the Fluent theme stylesheet is loaded for the new style-based assertions.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets/menuBase.markup.tests.js Adds regression tests validating cursor styles for enabled/disabled MenuBase items (incl. runtime changes).
packages/devextreme-scss/scss/widgets/base/_menuBase.scss Moves cursor: pointer to .dx-menu-item, adds disabled-state cursor overrides, and sets submenu container cursor to default.

@pharret31 pharret31 merged commit a32e237 into DevExpress:26_1 Apr 27, 2026
107 checks passed
@pharret31 pharret31 deleted the 26_1_4050-t1327513---menu---disabled-menu-items-have-the-pointer-cursor branch April 27, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants