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

Merging Annotation header changes #240

Merged
merged 6 commits into from
Oct 16, 2018
Merged

Merging Annotation header changes #240

merged 6 commits into from
Oct 16, 2018

Conversation

pramodsum
Copy link
Contributor

@ConradJChan let me know if I messed up any merge conflicts anywhere!

Conrad Chan and others added 4 commits October 11, 2018 10:25
* Update: Adding headerElement to annotator options

* Update: headerElement fallback to container when using preview header

* Chore: hide the annotation button on destroy

* Chore: default to header container

* Chore: addressing comments

* Chore: Only hideButton if modeButton exists
@boxcla
Copy link

boxcla commented Oct 16, 2018

Verified that @pramodsum has signed the CLA. Thanks for the pull request!

@pramodsum pramodsum requested a review from ConradJChan October 16, 2018 07:36
src/Annotator.js Outdated
// If using box content preview header and no external header element was specified,
// fallback to the container element
if (this.options.header !== 'none' && !this.headerElement) {
this.headerElement = this.container.querySelector(SELECTOR_BOX_PREVIEW_HEADER_CONTAINER);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ConradJChan It seems like this class is never loaded onto the preview header? The default preview header seems to use bp-header

Copy link
Contributor

@ConradJChan ConradJChan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

4 participants