@playpilot/tpi 6.1.1-beta.1 → 6.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "6.1.1-beta.1",
3
+ "version": "6.1.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -22,6 +22,7 @@
22
22
  background: theme(error-dark);
23
23
  font-size: margin(0.75);
24
24
  font-family: theme(font-family);
25
+ color: white;
25
26
 
26
27
  &.warning {
27
28
  border-color: theme(warning);
@@ -84,26 +84,17 @@ describe('Modal.svelte', () => {
84
84
  expect(onscroll).toHaveBeenCalled()
85
85
  })
86
86
 
87
- it('Should set overflow on mount', () => {
87
+ it('Should set class on mount', () => {
88
88
  render(Modal, { children })
89
89
 
90
- expect(document.documentElement.style.overflowY).toBe('hidden')
90
+ expect(document.documentElement.classList).toContain('playpilot-modal-open')
91
91
  })
92
92
 
93
- it('Should remove overflow when component is unmounted', () => {
93
+ it('Should remove class when component is unmounted', () => {
94
94
  const { unmount } = render(Modal, { children })
95
95
  unmount()
96
96
 
97
- expect(document.documentElement.style.overflowY).toBe('')
98
- })
99
-
100
- it('Should use overflow as it was before the component was mounted when component is unmounted', () => {
101
- document.documentElement.style.overflowY = 'some-value'
102
-
103
- const { unmount } = render(Modal, { children })
104
- unmount()
105
-
106
- expect(document.documentElement.style.overflowY).toBe('some-value')
97
+ expect(document.documentElement.classList).not.toContain('playpilot-modal-open')
107
98
  })
108
99
 
109
100
  it('Should not have tall class by default', () => {