Skip to content

Fix doubling UI buttons - #6

Open
techgique wants to merge 1 commit into
lduarte1991:masterfrom
techgique:fix-doubling-ui
Open

Fix doubling UI buttons#6
techgique wants to merge 1 commit into
lduarte1991:masterfrom
techgique:fix-doubling-ui

Conversation

@techgique

@techgique techgique commented Dec 21, 2017

Copy link
Copy Markdown

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