Remove a CSS class. Will log a warning if the class is not present, but will not raise an error.
(self, class_name)
| 771 | self._class_list.add(name) |
| 772 | |
| 773 | def remove(self, class_name): |
| 774 | """ |
| 775 | Remove a CSS class. |
| 776 | |
| 777 | Will log a warning if the class is not present, but will not raise an |
| 778 | error. |
| 779 | """ |
| 780 | for name in self._extract_class_names(class_name): |
| 781 | if name in self: |
| 782 | super().remove(name) |
| 783 | self._class_list.remove(name) |
| 784 | else: |
| 785 | console.warn(f"Class '{name}' not found in element classes.") |
| 786 | |
| 787 | def discard(self, class_name): |
| 788 | """ |