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

Fix DT tables selected row highlight with updating css #409

Merged
merged 6 commits into from
Feb 28, 2024

Conversation

esraay
Copy link
Contributor

@esraay esraay commented Apr 29, 2022

Short description (with a reference to an issue).

DoD

  • Major project work has a corresponding task. If there’s no task for what you are doing, create it. Each task needs to be well defined and described.

  • Change has been tested (manually or with automated tests), everything runs correctly and works as expected. No existing functionality is broken.

  • No new error or warning messages are introduced.

  • All interaction with a semantic functions, examples and docs are written from the perspective of the person using or receiving it. They are understandable and helpful to this person.

  • If the change affects code or repo sctructure, README, documentation and code comments should be updated.

  • All code has been peer-reviewed before merging into any main branch.

  • All changes have been merged into the main branch we use for development (develop).

  • Continuous integration checks (linter, unit tests) are configured and passed.

  • Unit tests added for all new or changed logic.

  • All task requirements satisfied. The reviewer is responsible to verify each aspect of the task.

  • Any added or touched code follows our style-guide.

@esraay
Copy link
Contributor Author

esraay commented Apr 29, 2022

Closes #373

@esraay esraay requested a review from jakubsob April 29, 2022 09:21
Copy link
Contributor

@jakubsob jakubsob left a comment

Choose a reason for hiding this comment

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

What about the other part of the issue?

Also, when trying to change the table style (e.g. by adding style = 'default') , an error message appears:
Error: formal argument "style" matched by multiple actual arguments

We could create a new issue for fixing the style argument

@@ -16,3 +16,6 @@
-webkit-transition: color .1s ease,border-color .1s ease;
transition: color .1s ease,border-color .1s ease;
}
table.dataTable tr.selected td, table.dataTable td.selected {
background-color: #95d8f5 !important;
Copy link
Contributor

Choose a reason for hiding this comment

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

@esraay This works nicely, but why is !important used here? Won't it work without it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for noticing, yes it was unnecessary so I removed it.

@esraay
Copy link
Contributor Author

esraay commented Oct 23, 2022

What about the other part of the issue?

Also, when trying to change the table style (e.g. by adding style = 'default') , an error message appears:
Error: formal argument "style" matched by multiple actual arguments

We could create a new issue for fixing the style argument

'style' argument added to semantic_DT

It gives the ability to use all fomanticUI table classes and use the default class without fomanticUI
@esraay
Copy link
Contributor Author

esraay commented Oct 23, 2022

Also, I added the class argument for semantic_DT after checking out #417. In this way, all classes provided in fomanticUI official documentation and DT's default classes can be used.

@jakubnowicki jakubnowicki merged commit 0d923f9 into develop Feb 28, 2024
5 checks passed
@jakubnowicki jakubnowicki deleted the esra-selected-rows-are-not-highlghted branch February 28, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants