Skip to content

Commit

Permalink
Fix (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryceg authored Apr 16, 2021
1 parent 01b97ac commit 3e52f9f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## 2.8.4

### Changed
- Fixed tippy which was left on debug mode. Oops.

## 2.8.3

### Added
Expand Down
2 changes: 1 addition & 1 deletion lib/src/tippy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const createTippyWord = (tippy: string, word: string) => {
*/
export const createTippyFull = (readout: string, word: string) => {
const id = lib.getUUID()
return `<span class="tip dotted" id="${id}" role="tooltip" tabindex="0" data-tippy-content=${JSON.stringify(readout)}>${word}<<done>><<run tippy(document.getElementById('${id}'))>><</done>></span>`
return `<span class="tip dotted" data-id="${id}" id="${id}" role="tooltip" tabindex="0" data-tippy-content=${JSON.stringify(readout)}>${word}<<done>><<run tippy(document.getElementById('${id}'))>><</done>></span>`
}

export function createAutoTippy<C extends Construct> (utils: ConstructUtils<C>, ...args: Parameters<ConstructUtils<C>['create']>) {
Expand Down
4 changes: 2 additions & 2 deletions src/Settings/Tippy/tooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ tippy.setDefaultProps({
theme: 'blockquote',
// theme: 'descriptive',
allowHTML: true,
hideOnClick: 'toggle',
trigger: 'click',
// hideOnClick: 'toggle',
// trigger: 'click',
inertia: true
})
2 changes: 1 addition & 1 deletion src/Start/StoryInit.twee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<<run setup.init()>>

<<set setup.data to {
versionNumber: "2.8.3",
versionNumber: "2.8.4",
badges: {
github: lib.createBadge([
lib.badges.stats.githubForks,
Expand Down

0 comments on commit 3e52f9f

Please sign in to comment.