Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar: Improve aria-label in Multiple mode #28106

Open
wants to merge 18 commits into
base: 24_2
Choose a base branch
from

Conversation

marker-dao
Copy link
Contributor

No description provided.

@marker-dao marker-dao requested a review from a team September 24, 2024 20:16
@marker-dao marker-dao self-assigned this Sep 24, 2024
@marker-dao marker-dao requested a review from a team as a code owner September 24, 2024 20:16
@marker-dao marker-dao closed this Sep 24, 2024
@marker-dao marker-dao reopened this Sep 24, 2024
@marker-dao marker-dao closed this Sep 25, 2024
@marker-dao marker-dao reopened this Sep 25, 2024
@marker-dao marker-dao closed this Sep 25, 2024
@marker-dao marker-dao reopened this Sep 25, 2024
packages/devextreme/js/core/utils/date.js Outdated Show resolved Hide resolved
@@ -689,6 +689,45 @@ const getMachineTimezoneName = () => {
: null;
};

const getRangesByDates = (dates) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We calculate the same value for area-label three times: once for the visible view and twice for the invisible ones. Is there any way to optimize this and calculate the value only once?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it's important, anyway we have O(n) time complexity

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can, but for that I would introduce a new ranges option at the calendar level.

ksercs
ksercs previously approved these changes Sep 27, 2024
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