This PR contributes changes to both the functionality and the appearance of the discourse tag filters.
The first change is around the functionality. Like before, when a reader opens the drawer, they see a list of sentences belonging to all discourse categories. However, unlike before, when a reader clicks on one of the tags, then only that tag gets selected and all others are deselected. This behavior applies for the first tag selection only.
Then, if a reader wish to enable all tags they can click the "Everything" button, which selects all tags. If all tags are selected, the "Everything" button appears selected, and the reader can deselect all tags by clicking the "Everything" button again.
This PR also includes a few style fixes, including:
the palette of discourse tag filters always shows in the drawer, no matter how far down in the list of sentences the reader scrolls
the discourse tag buttons have a check box on them to indicate to readers that they can either be turned on or off
the width of the discourse tag buttons is set adaptively to ensure that the buttons are always flush with the margins of the the drawer
This PR contributes changes to both the functionality and the appearance of the discourse tag filters.
The first change is around the functionality. Like before, when a reader opens the drawer, they see a list of sentences belonging to all discourse categories. However, unlike before, when a reader clicks on one of the tags, then only that tag gets selected and all others are deselected. This behavior applies for the first tag selection only.
Then, if a reader wish to enable all tags they can click the "Everything" button, which selects all tags. If all tags are selected, the "Everything" button appears selected, and the reader can deselect all tags by clicking the "Everything" button again.
This PR also includes a few style fixes, including: