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 doubling UI buttons #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

techgique
Copy link

@techgique techgique commented Dec 21, 2017

Determine cause to be <ul> elements containing tag tokens

They are unintentionally duplicated before and after Annotator controls
by code searching for all UL elements in the Annotator editor

See in Annotator CoffeeScript:
https://github.com/openannotation/annotator/blob/865840ba641c168b24a99af28f390e9778105cea/src/editor.coffee#L267

See in resulting JavaScript:
https://github.com/openannotation/annotator/blob/865840ba641c168b24a99af28f390e9778105cea/pkg/annotator.js#L1605

Fix by changing to <ol> elements and updating corresponding CSS

Originally fixed here: Willa-Cather-Archive/annotonia@c6b2ba0

Determine cause to be <ul> elements containing tag tokens

They are unintentionally duplicated before and after Annotator controls
by code searching for all UL elements in the Annotator editor

See in Annotator CoffeeScript:
https://github.com/openannotation/annotator/blob/865840ba641c168b24a99af28f390e9778105cea/src/editor.coffee#L267

See in resulting JavaScript:
https://github.com/openannotation/annotator/blob/865840ba641c168b24a99af28f390e9778105cea/pkg/annotator.js#L1605

Fix by changing to <ol> elements and updating corresponding CSS

Originally fixed here: Willa-Cather-Archive/annotonia@c6b2ba0
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.

1 participant