@lion/field
Advanced tools
Comparing version 0.8.7 to 0.8.8
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.8.8](https://github.com/ing-bank/lion/compare/@lion/field@0.8.7...@lion/field@0.8.8) (2020-02-06) | ||
### Bug Fixes | ||
* **button:** run regexp once instead of every render cycle ([954adc5](https://github.com/ing-bank/lion/commit/954adc56596f2d9244baf48889d6b338b2a12ac4)) | ||
## [0.8.7](https://github.com/ing-bank/lion/compare/@lion/field@0.8.6...@lion/field@0.8.7) (2020-02-05) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@lion/field", | ||
"version": "0.8.7", | ||
"version": "0.8.8", | ||
"description": "Fields are the most fundamental building block of the Form System", | ||
@@ -36,7 +36,7 @@ "author": "ing-bank", | ||
"dependencies": { | ||
"@lion/core": "0.4.2", | ||
"@lion/validate": "0.6.5" | ||
"@lion/core": "0.4.3", | ||
"@lion/validate": "0.6.6" | ||
}, | ||
"devDependencies": { | ||
"@lion/localize": "0.8.5", | ||
"@lion/localize": "0.8.6", | ||
"@open-wc/demoing-storybook": "^1.8.3", | ||
@@ -46,3 +46,3 @@ "@open-wc/testing": "^2.5.0", | ||
}, | ||
"gitHead": "e7406054fc052866cb13d2b9ece6994aeac82e4b" | ||
"gitHead": "d67225984ce359c421e1c1e350da98819f83e452" | ||
} |
@@ -1,2 +0,2 @@ | ||
const isIE11 = /Trident/.test(window.navigator.userAgent); | ||
import { browserDetection } from '@lion/core'; | ||
@@ -17,5 +17,5 @@ /** | ||
if (pos === Node.DOCUMENT_POSITION_PRECEDING || pos === Node.DOCUMENT_POSITION_CONTAINED_BY) { | ||
return isIE11 ? -1 : 1; | ||
return browserDetection.isIE11 ? -1 : 1; | ||
} | ||
return isIE11 ? 1 : -1; | ||
return browserDetection.isIE11 ? 1 : -1; | ||
}; | ||
@@ -22,0 +22,0 @@ |
import { expect, fixture, html } from '@open-wc/testing'; | ||
import sinon from 'sinon'; | ||
import { browserDetection } from '@lion/core'; | ||
import { getAriaElementsInRightDomOrder } from '../../src/utils/getAriaElementsInRightDomOrder.js'; | ||
@@ -46,2 +48,25 @@ | ||
}); | ||
it('orders in reverse for IE11', async () => { | ||
const browserDetectionStub = sinon.stub(browserDetection, 'isIE11').value(true); | ||
const el = await fixture(html` | ||
<div> | ||
<div id="a"></div> | ||
<div></div> | ||
<div id="b"> | ||
<div></div> | ||
<div id="b-child"></div> | ||
</div> | ||
<div></div> | ||
<div id="c"></div> | ||
<div></div> | ||
</div> | ||
`); | ||
// eslint-disable-next-line no-unused-vars | ||
const [a, _1, b, _2, bChild, _3, c, _4] = el.querySelectorAll('div'); | ||
const unorderedNodes = [bChild, c, a, b]; | ||
const result = getAriaElementsInRightDomOrder(unorderedNodes); | ||
expect(result).to.eql([c, bChild, b, a]); | ||
browserDetectionStub.restore(); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159659
3200
+ Added@lion/core@0.4.3(transitive)
+ Added@lion/localize@0.8.6(transitive)
+ Added@lion/validate@0.6.6(transitive)
+ Addedlit-element@2.5.1(transitive)
- Removed@lion/localize@0.8.5(transitive)
- Removed@lion/validate@0.6.5(transitive)
Updated@lion/core@0.4.3
Updated@lion/validate@0.6.6