diff --git a/packages/paco/config/index.js b/packages/paco/config/index.js index 7c6e402aedf..62cdfa7fcb1 100644 --- a/packages/paco/config/index.js +++ b/packages/paco/config/index.js @@ -105,7 +105,14 @@ export default { frontPockets: { bool: true }, backPockets: { bool: false }, // Not exposed to the user - frontPocketFlapSize: { pct: 3, min: 3, max: 3, snap: smallsteps, ...pctBasedOn('waist') }, + frontPocketFlapSize: { + pct: 3, + min: 3, + max: 3, + snap: smallsteps, + ...pctBasedOn('waist'), + hidden: true + }, // Advanced legBalance: { pct: 57.5, min: 52.5, max: 62.5 }, diff --git a/tests/patterns/config.mjs b/tests/patterns/config.mjs index b5a4aaaf118..7475c9cdbbe 100644 --- a/tests/patterns/config.mjs +++ b/tests/patterns/config.mjs @@ -124,9 +124,15 @@ export const testPatternConfig = (design, pattern, expect, models, patterns) => if (type === 'object' && typeof option.pct !== 'undefined') { // Percentage option it(` - '${name}' is a percentage option`, () => true) - it(` - Should be exposed in an option group`, () => { - expect(allOptiongroupOptions.indexOf(name) !== -1).to.be.true - }) + // Snapped options can just be hidden instead + if (option.hidden) { + if (option.snap) it(` - '${name}' is a hidden snap option`, () => true) + else { + it(` - Should be exposed in an option group`, () => { + expect(allOptiongroupOptions.indexOf(name) !== -1).to.be.true + }) + } + } it(` - Should have a default value`, () => { expect(typeof option.pct).to.equal('number') })