- 13 May, 2020 1 commit
-
-
Kyle Keating authored
Pass undefined to MenuItem to hide the submenu and its toggle button.
-
- 11 May, 2020 10 commits
-
-
Robert Knight authored
Fix sidebar vertical toolbar button alignment
-
Robert Knight authored
The client's test page was missing a `<!DOCTYPE html>` declaration and as a result rendered in _quirks mode_ rather than _standards mode_. This hid an issue where the toolbar buttons were not centered correctly in standards-mode documents. This incorrect centering was caused by: 1. The CSS bundle for the "annotator" part of the app not including the CSS styles for the `SvgIcon` component 2. An unnecessary `padding` declaration on the `.annotator-frame-button` class I haven't investigated in detail exactly which quirks-vs-standards mode difference resulted in the centering still being OK in quirks-mode. This commit fixes these two issues and fixes toolbar button centering in both quirks and standards-mode documents. It also updates the client's test page to add the `<!DOCTYPE html>` declaration since standards mode is what most web content uses.
-
dependabot-preview[bot] authored
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.0.10 to 2.0.11. - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/2.0.10...2.0.11) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [jquery](https://github.com/jquery/jquery) from 3.5.0 to 3.5.1. - [Release notes](https://github.com/jquery/jquery/releases) - [Commits](https://github.com/jquery/jquery/compare/3.5.0...3.5.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
Robert Knight authored
Fix sidebar toggle button when using VoiceOver on iOS
-
Robert Knight authored
Rename this module to distinguish it from `src/sidebar/util/dom.js` which are generic DOM utilities that are not ponyfills for standard methods. See https://github.com/hypothesis/client/pull/2106/files#r420296891
-
Robert Knight authored
When using iOS with VoiceOver enabled, double-tapping the sidebar toggle button caused the sidebar to open and then immediately close. The immediate close was caused by the `onElementTouchStart` handler in `guest.coffee` that is intended to hide the sidebar when the user taps somewhere in the document outside the sidebar. This handler did not check however whether the event originated from annotator UI or not. The fix here is to ignore any events which occur inside the sidebar frame's container. Fixes #1765
-
Robert Knight authored
Use SVG icons in annotator toolbar
-
Robert Knight authored
Add `src/annotator/icons.js` which mirrors `src/sidebar/icons.js`. It contains all the icons used by the "annotator" part of the application. Remove from `src/sidebar/icons.js` those icons which were not used by the sidebar but are referenced in tests for annotator components. The annotator icons are now registered for use in tests by `bootstrap.js`.
-
Robert Knight authored
Attempt to squelch spurious tiny codecov failures by setting threshold
-
- 07 May, 2020 7 commits
-
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
The contents of the `caret-right` icon weren’t consistent with the `caret-*` icons in the pattern library, but the icon is used by `Thread`. Rename to `collapsed` (for `Thread` use) and update `caret-right` to match the pattern library-style carets.
-
Robert Knight authored
Make menu section heading slightly darker
-
Lyza Danger Gardner authored
We’ve had a lot of `codecov` failures that result from tiny apparent coverage fluctuations. Set a threshold to attempt to filter out noisy, meaningless failures.
-
Robert Knight authored
Per the useful notes in `variables.scss`, $grey-5 is the lightest grey that can be used on a white background for the text to meet WCAG contrast requirements. This change also makes menu section headings more consistent with other text in the sidebar.
-
- 06 May, 2020 17 commits
-
-
Lyza Gardner authored
Add `aria-label` and/or `title` to `<button>` elements
-
Lyza Gardner authored
Add `aria-expanded` to excerpt show/hide toggles
-
Lyza Gardner authored
Add more properties to sample config in `dev-server`
-
Lyza Gardner authored
Change show/hide sidebar button label depending on state
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
Only set `aria-label` and `title` attributes on `<button>` elements if they are different from the text displayed in the button.
-
Lyza Danger Gardner authored
For developer convenience, add a few more (commented-out) properties to the config used by the local devserver, and link to more documentation
-
Lyza Danger Gardner authored
-
Lyza Gardner authored
Add word-break rule to prevent long-string overflows
-
Robert Knight authored
Fix "New annotation"/"New page note" label
-
Robert Knight authored
The button label should be "New annotation" if text is selected or "New page note otherwise", but it was the wrong way round. Fixes a regression introduced in #2102
-
Robert Knight authored
Change the sidebar toggle button from being a toggle button with the label "Show annotation sidebar" to a normal button that changes between "Show annotation sidebar" and "Hide annotation sidebar" labels. WAI-ARIA guidelines [1] suggest that both are valid ways of implementing toggle actions and looking around web and native apps on macOS one can find plenty of both for similar actions. The one clear requirement is to use a label change OR aria-pressed, but not both. We think [2] a label change will make the state slightly easier to quickly discern and it provides a more useful tooltip for sighted desktop users. [1] https://www.w3.org/TR/wai-aria-practices-1.1/#button [2] https://github.com/hypothesis/client/issues/2055#issuecomment-622512247 Fixes https://github.com/hypothesis/client/issues/2055.
-
Robert Knight authored
Re-implement the sidebar's vertical toolbar
-
Robert Knight authored
This is addressed by the `if @frame` logic a few lines down which only adds the toolbar if we're providing our own frame.
-
Robert Knight authored
Address PR feedback by rewriting several test descriptions and adding comments.
-
Robert Knight authored
This commit re-implements the vertical toolbar on the left edge of the sidebar to make future changes to the toolbar UI easier (eg. some upcoming a11y changes) and to decouple it from the rest of the annotator application (the toolbar and `Sidebar`/`Guest` classes currently access each other's internals in a rather haphazard way). The new implementation has a similar code structure to the `Adder` toolbar that is shown when selecting text. It consists of: 1. A Preact component in `src/annotator/components/toolbar` which renders the toolbar UI according to the current state 2. A controller class in `src/annotator/toolbar.js` which renders the Preact component into a container element and has provides properties that the `Sidebar` and `Guest` classes can use to update its state. The controller takes only the container element and callbacks associated with each button as inputs, so it no longer calls methods on the Guest/Sidebar. The sidebar and guest now update the toolbar UI by setting properties on the toolbar controller, rather than using a mixture of manual manipulation of the toolbar DOM and publishing events which get eventually translated to method calls on the toolbar. If we convert the remainder of the sidebar UI from jQuery/manual DOM updates to Preact in future, then we can remove the toolbar controller entirely and just render the toolbar component from within the sidebar component.
-
- 05 May, 2020 5 commits
-
-
Kyle Keating authored
allowLeavingGroups is a new service level config setting that can globally override the the UI to hide the leave button for a group. This is necessary for section groups in LMS where groups are indeed private, but also can’t be left.
-
Lyza Danger Gardner authored
Add `word-break` rule to `markdown-view` CSS to prevent long strings of characters, e.g. URLs, from breaking out of the sidebar width in replies. Fixes https://github.com/hypothesis/support/issues/101
-
Robert Knight authored
Cleanup sidebar CSS
-
Robert Knight authored
This rule is already in the user-agent stylesheet for Safari, Chrome and Firefox.
-
Robert Knight authored
This doesn't belong here and we don't have a `<markdown>` element in the app any more.
-