@financial-times/x-topic-search 0.0.10 → 6.6.0
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/__tests__/x-topic-search.test.jsx +76 -75
- package/bower.json +4 -3
- package/bower_components/fontfaceobserver/package.json +57 -0
- package/bower_components/fticons/.bower.json +5 -5
- package/bower_components/fticons/.github/CODEOWNERS +1 -1
- package/bower_components/fticons/.github/ISSUE_TEMPLATE.md +1 -1
- package/bower_components/fticons/.github/PULL_REQUEST_TEMPLATE.md +0 -1
- package/bower_components/fticons/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
- package/bower_components/fticons/.github/workflows/apply-labels.yml +13 -0
- package/bower_components/fticons/.github/workflows/auto-approve.yml +23 -0
- package/bower_components/fticons/.github/workflows/automatic-tag-and-release.yml +21 -0
- package/bower_components/fticons/.github/workflows/publish.yml +26 -0
- package/bower_components/fticons/.github/workflows/sync-repo-labels.yml +12 -0
- package/bower_components/fticons/README.md +2 -2
- package/bower_components/fticons/contributing.md +1 -3
- package/bower_components/fticons/imageset.json +183 -60
- package/bower_components/fticons/origami.json +4 -3
- package/bower_components/fticons/package-lock.json +5481 -0
- package/bower_components/fticons/package.json +15 -1
- package/bower_components/fticons/svg/data.svg +1 -0
- package/bower_components/fticons/svg/edit.svg +1 -1
- package/bower_components/fticons/svg/label-outline.svg +1 -0
- package/bower_components/fticons/svg/label.svg +1 -0
- package/bower_components/fticons/svg/mute-notifications.svg +1 -0
- package/bower_components/fticons/svg/restore.svg +1 -0
- package/bower_components/fticons/svg/scroll-to.svg +1 -0
- package/bower_components/fticons/svg/skip-backward-30.svg +1 -0
- package/bower_components/fticons/svg/skip-forward-30.svg +1 -0
- package/bower_components/mathsass/package.json +58 -0
- package/bower_components/o-assets/.bower.json +5 -5
- package/bower_components/o-assets/.eslintrc.js +3 -0
- package/bower_components/o-assets/.github/CODEOWNERS +1 -1
- package/bower_components/o-assets/.github/ISSUE_TEMPLATE.md +1 -1
- package/bower_components/o-assets/.github/dependabot.yml +21 -0
- package/bower_components/o-assets/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +16 -0
- package/bower_components/o-assets/.github/workflows/apply-labels.yml +14 -0
- package/bower_components/o-assets/.github/workflows/auto-approve.yml +12 -0
- package/bower_components/o-assets/.github/workflows/automatic-tag-and-release.yml +21 -0
- package/bower_components/o-assets/.github/workflows/automerge.yml +40 -0
- package/bower_components/o-assets/.github/workflows/release-origami-component.yml +29 -0
- package/bower_components/o-assets/.github/workflows/sync-repo-labels.yml +13 -0
- package/bower_components/o-assets/.github/workflows/test-origami-component.yml +22 -0
- package/bower_components/o-assets/.remarkrc.js +1 -0
- package/bower_components/o-assets/.stylelintrc.js +3 -0
- package/bower_components/o-assets/README.md +50 -43
- package/bower_components/o-assets/origami.json +4 -6
- package/bower_components/o-brand/.bower.json +5 -5
- package/bower_components/o-brand/README.md +74 -81
- package/bower_components/o-brand/origami.json +1 -4
- package/bower_components/o-brand/package-lock.json +1810 -0
- package/bower_components/o-brand/package.json +10 -0
- package/bower_components/o-brand/scss/_mixins.scss +6 -7
- package/bower_components/o-brand/scss/_private-functions.scss +2 -2
- package/bower_components/o-brand/scss/_variables.scss +7 -1
- package/bower_components/o-colors/.bower.json +6 -6
- package/bower_components/o-colors/.eslintrc.js +3 -0
- package/bower_components/o-colors/.github/CODEOWNERS +1 -1
- package/bower_components/o-colors/.github/ISSUE_TEMPLATE.md +1 -1
- package/bower_components/o-colors/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
- package/bower_components/o-colors/.github/workflows/apply-labels.yml +13 -0
- package/bower_components/o-colors/.github/workflows/auto-approve.yml +23 -0
- package/bower_components/o-colors/.github/workflows/automatic-tag-and-release.yml +21 -0
- package/bower_components/o-colors/.github/workflows/percy.yml +35 -0
- package/bower_components/o-colors/.github/workflows/release-origami-component.yml +29 -0
- package/bower_components/o-colors/.github/workflows/sync-repo-labels.yml +12 -0
- package/bower_components/o-colors/.github/workflows/test-origami-component.yml +22 -0
- package/bower_components/o-colors/.remarkrc.js +1 -0
- package/bower_components/o-colors/.stylelintrc.js +3 -0
- package/bower_components/o-colors/MIGRATION.md +373 -0
- package/bower_components/o-colors/README.md +253 -150
- package/bower_components/o-colors/app.json +12 -0
- package/bower_components/o-colors/bower.json +1 -1
- package/bower_components/o-colors/demos/src/b2c-palette.mustache +9 -9
- package/bower_components/o-colors/demos/src/{experimental-palette.mustache → brand-palette.mustache} +3 -4
- package/bower_components/o-colors/demos/src/color-mixer/color-mixer.js +61 -0
- package/bower_components/o-colors/demos/src/{sandboxes/colors-mix.scss → color-mixer/color-mixer.scss} +38 -47
- package/bower_components/o-colors/demos/src/color-mixer/index.mustache +88 -0
- package/bower_components/o-colors/demos/src/color-mixer/select-options.mustache +11 -0
- package/bower_components/o-colors/demos/src/contrast-checker/contrast-checker.js +88 -0
- package/bower_components/o-colors/demos/src/contrast-checker/contrast-checker.scss +223 -0
- package/bower_components/o-colors/demos/src/contrast-checker/fieldsets/background.mustache +28 -0
- package/bower_components/o-colors/demos/src/contrast-checker/fieldsets/foreground.mustache +28 -0
- package/bower_components/o-colors/demos/src/contrast-checker/fieldsets/mixer.mustache +78 -0
- package/bower_components/o-colors/demos/src/contrast-checker/index.mustache +51 -0
- package/bower_components/o-colors/demos/src/demo.js +6 -5
- package/bower_components/o-colors/demos/src/demo.scss +19 -17
- package/bower_components/o-colors/demos/src/pa11y.mustache +6 -6
- package/bower_components/o-colors/demos/src/palettes/internal-palette.json +8 -7
- package/bower_components/o-colors/demos/src/palettes/master-palette.json +14 -6
- package/bower_components/o-colors/demos/src/palettes/whitelabel-palette.json +6 -4
- package/bower_components/o-colors/demos/src/partner-content-palette.mustache +10 -0
- package/bower_components/o-colors/demos/src/primary-palette.mustache +1 -1
- package/bower_components/o-colors/demos/src/secondary-palette.mustache +1 -1
- package/bower_components/o-colors/demos/src/shared/colors-mix.js +39 -0
- package/bower_components/o-colors/demos/src/{sandboxes → shared}/contrast-ratio.js +17 -17
- package/bower_components/o-colors/demos/src/tertiary-palette.mustache +1 -1
- package/bower_components/o-colors/demos/src/tones-mixes.mustache +26 -0
- package/bower_components/o-colors/main.scss +81 -28
- package/bower_components/o-colors/origami.json +93 -50
- package/bower_components/o-colors/package.json +18 -0
- package/bower_components/o-colors/src/scss/_functions.scss +407 -130
- package/bower_components/o-colors/src/scss/_mixins.scss +188 -104
- package/bower_components/o-colors/src/scss/_palette.scss +88 -320
- package/bower_components/o-colors/src/scss/_use-cases.scss +93 -71
- package/bower_components/o-colors/src/scss/_variables.scss +58 -16
- package/bower_components/o-editorial-typography/.bower.json +31 -0
- package/bower_components/o-editorial-typography/README.md +213 -0
- package/bower_components/o-editorial-typography/bower.json +20 -0
- package/bower_components/o-editorial-typography/demos/src/body.mustache +1 -0
- package/bower_components/o-editorial-typography/demos/src/byline.mustache +4 -0
- package/bower_components/o-editorial-typography/demos/src/caption.mustache +6 -0
- package/bower_components/o-editorial-typography/demos/src/demo.scss +8 -0
- package/bower_components/o-editorial-typography/demos/src/headings.mustache +5 -0
- package/bower_components/o-editorial-typography/demos/src/headline.mustache +1 -0
- package/bower_components/o-editorial-typography/demos/src/ordered-list.mustache +5 -0
- package/bower_components/o-editorial-typography/demos/src/pa11y.mustache +33 -0
- package/bower_components/o-editorial-typography/demos/src/standfirst.mustache +3 -0
- package/bower_components/o-editorial-typography/demos/src/topic-tag.mustache +1 -0
- package/bower_components/o-editorial-typography/demos/src/unordered-list.mustache +5 -0
- package/bower_components/o-editorial-typography/main.scss +143 -0
- package/bower_components/o-editorial-typography/origami.json +86 -0
- package/bower_components/o-editorial-typography/package-lock.json +1743 -0
- package/bower_components/o-editorial-typography/package.json +8 -0
- package/bower_components/o-editorial-typography/src/scss/_brand.scss +12 -0
- package/bower_components/o-editorial-typography/src/scss/_functions.scss +0 -0
- package/bower_components/o-editorial-typography/src/scss/_mixins.scss +242 -0
- package/bower_components/o-editorial-typography/src/scss/_variables.scss +9 -0
- package/bower_components/o-fonts/.bower.json +6 -6
- package/bower_components/o-fonts/.eslintrc.js +3 -0
- package/bower_components/o-fonts/.github/CODEOWNERS +1 -1
- package/bower_components/o-fonts/.github/ISSUE_TEMPLATE.md +1 -1
- package/bower_components/o-fonts/.github/dependabot.yml +21 -0
- package/bower_components/o-fonts/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
- package/bower_components/o-fonts/.github/workflows/apply-labels.yml +13 -0
- package/bower_components/o-fonts/.github/workflows/auto-approve.yml +23 -0
- package/bower_components/o-fonts/.github/workflows/automatic-tag-and-release.yml +21 -0
- package/bower_components/o-fonts/.github/workflows/release-origami-component.yml +29 -0
- package/bower_components/o-fonts/.github/workflows/sync-repo-labels.yml +12 -0
- package/bower_components/o-fonts/.github/workflows/test-origami-component.yml +22 -0
- package/bower_components/o-fonts/.stylelintrc.js +3 -0
- package/bower_components/o-fonts/MIGRATION.md +32 -0
- package/bower_components/o-fonts/README.md +125 -46
- package/bower_components/o-fonts/app.json +12 -0
- package/bower_components/o-fonts/bower.json +1 -1
- package/bower_components/o-fonts/demos/src/demo.scss +2 -1
- package/bower_components/o-fonts/main.scss +49 -9
- package/bower_components/o-fonts/origami.json +3 -5
- package/bower_components/o-fonts/package-lock.json +1870 -0
- package/bower_components/o-fonts/package.json +14 -0
- package/bower_components/o-fonts/src/scss/_functions.scss +103 -41
- package/bower_components/o-fonts/src/scss/_mixins.scss +128 -91
- package/bower_components/o-fonts/src/scss/_variables.scss +108 -32
- package/bower_components/o-fonts/test/scss/_functions.test.scss +72 -35
- package/bower_components/o-fonts/test/scss/_mixins.test.scss +198 -24
- package/bower_components/o-grid/.bower.json +5 -5
- package/bower_components/o-grid/.eslintrc.js +3 -0
- package/bower_components/o-grid/.github/CODEOWNERS +1 -1
- package/bower_components/o-grid/.github/ISSUE_TEMPLATE.md +1 -1
- package/bower_components/o-grid/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
- package/bower_components/o-grid/.github/workflows/apply-labels.yml +13 -0
- package/bower_components/o-grid/.github/workflows/auto-approve.yml +23 -0
- package/bower_components/o-grid/.github/workflows/automatic-tag-and-release.yml +21 -0
- package/bower_components/o-grid/.github/workflows/percy.yml +35 -0
- package/bower_components/o-grid/.github/workflows/release-origami-component.yml +29 -0
- package/bower_components/o-grid/.github/workflows/sync-repo-labels.yml +12 -0
- package/bower_components/o-grid/.github/workflows/test-origami-component.yml +22 -0
- package/bower_components/o-grid/.stylelintrc.js +3 -0
- package/bower_components/o-grid/MIGRATION.md +49 -0
- package/bower_components/o-grid/README.md +112 -119
- package/bower_components/o-grid/app.json +12 -0
- package/bower_components/o-grid/bookmarklet/bookmarklet.js +2 -2
- package/bower_components/o-grid/demos/src/configurations.json +1 -2
- package/bower_components/o-grid/demos/src/js/layout-change-events.js +1 -1
- package/bower_components/o-grid/demos/src/js/style-switcher.js +11 -12
- package/bower_components/o-grid/demos/src/scss/_demos.scss +0 -8
- package/bower_components/o-grid/main.js +38 -77
- package/bower_components/o-grid/main.scss +124 -62
- package/bower_components/o-grid/origami.json +3 -12
- package/bower_components/o-grid/package-lock.json +1848 -0
- package/bower_components/o-grid/package.json +13 -1
- package/bower_components/o-grid/src/scss/_functions.scss +90 -0
- package/bower_components/o-grid/src/scss/{_main.scss → _mixins.scss} +177 -384
- package/bower_components/o-grid/src/scss/_variables.scss +0 -49
- package/bower_components/o-grid/test/scss/_base-grid.test.scss +135 -163
- package/bower_components/o-grid/test/scss/_fixed-grid.test.scss +28 -36
- package/bower_components/o-grid/test/scss/_fluid-grid.test.scss +88 -123
- package/bower_components/o-icons/.bower.json +7 -7
- package/bower_components/o-icons/.eslintrc.js +3 -0
- package/bower_components/o-icons/.github/CODEOWNERS +1 -1
- package/bower_components/o-icons/.github/ISSUE_TEMPLATE.md +1 -1
- package/bower_components/o-icons/.github/dependabot.yml +21 -0
- package/bower_components/o-icons/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
- package/bower_components/o-icons/.github/workflows/apply-labels.yml +13 -0
- package/bower_components/o-icons/.github/workflows/auto-approve.yml +23 -0
- package/bower_components/o-icons/.github/workflows/automatic-tag-and-release.yml +21 -0
- package/bower_components/o-icons/.github/workflows/percy.yml +35 -0
- package/bower_components/o-icons/.github/workflows/release-origami-component.yml +29 -0
- package/bower_components/o-icons/.github/workflows/sync-repo-labels.yml +12 -0
- package/bower_components/o-icons/.github/workflows/test-origami-component.yml +22 -0
- package/bower_components/o-icons/.stylelintrc.js +3 -0
- package/bower_components/o-icons/MIGRATION.md +82 -0
- package/bower_components/o-icons/README.md +80 -134
- package/bower_components/o-icons/app.json +12 -0
- package/bower_components/o-icons/bower.json +2 -2
- package/bower_components/o-icons/demos/src/custom-icons.mustache +14 -0
- package/bower_components/o-icons/demos/src/data.json +30 -0
- package/bower_components/o-icons/demos/src/demo.scss +13 -33
- package/bower_components/o-icons/demos/src/icons.mustache +8 -0
- package/bower_components/o-icons/main.scss +21 -8
- package/bower_components/o-icons/origami.json +22 -11
- package/bower_components/o-icons/package-lock.json +1832 -0
- package/bower_components/o-icons/package.json +14 -0
- package/bower_components/o-icons/scripts/build-icon-list.js +6 -2
- package/bower_components/o-icons/{scss → src/scss}/_icon-list.scss +10 -0
- package/bower_components/o-icons/src/scss/_mixins.scss +71 -0
- package/bower_components/o-icons/src/scss/_variables.scss +8 -0
- package/bower_components/o-icons/test/scss/_mixins.test.scss +94 -0
- package/bower_components/o-icons/test/scss/index.test.scss +5 -0
- package/bower_components/o-normalise/.bower.json +28 -0
- package/bower_components/o-normalise/MIGRATION.md +35 -0
- package/bower_components/o-normalise/README.md +80 -0
- package/bower_components/o-normalise/bower.json +17 -0
- package/bower_components/o-normalise/demos/src/demo.js +9 -0
- package/bower_components/o-normalise/demos/src/demo.scss +30 -0
- package/bower_components/o-normalise/demos/src/focus.mustache +58 -0
- package/bower_components/o-normalise/demos/src/pa11y.mustache +3 -0
- package/bower_components/o-normalise/main.scss +78 -0
- package/bower_components/o-normalise/origami.json +39 -0
- package/bower_components/o-normalise/package.json +14 -0
- package/bower_components/o-normalise/src/scss/_mixins.scss +332 -0
- package/bower_components/o-normalise/src/scss/_variables.scss +5 -0
- package/bower_components/o-spacing/.bower.json +25 -0
- package/bower_components/o-spacing/MIGRATION.md +7 -0
- package/bower_components/o-spacing/README.md +146 -0
- package/bower_components/o-spacing/bower.json +14 -0
- package/bower_components/o-spacing/demos/src/demo.scss +100 -0
- package/bower_components/o-spacing/demos/src/named-spaces.mustache +51 -0
- package/bower_components/o-spacing/demos/src/vertical-margin-utilities.mustache +10 -0
- package/bower_components/o-spacing/main.scss +45 -0
- package/bower_components/o-spacing/origami.json +39 -0
- package/bower_components/o-spacing/package-lock.json +1753 -0
- package/bower_components/o-spacing/package.json +10 -0
- package/bower_components/o-spacing/src/scss/_functions.scss +26 -0
- package/bower_components/o-spacing/src/scss/_variables.scss +36 -0
- package/bower_components/o-typography/.bower.json +11 -9
- package/bower_components/o-typography/.eslintrc.js +3 -0
- package/bower_components/o-typography/.github/CODEOWNERS +1 -1
- package/bower_components/o-typography/.github/ISSUE_TEMPLATE.md +1 -1
- package/bower_components/o-typography/.github/dependabot.yml +21 -0
- package/bower_components/o-typography/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +15 -0
- package/bower_components/o-typography/.github/workflows/apply-labels.yml +13 -0
- package/bower_components/o-typography/.github/workflows/auto-approve.yml +23 -0
- package/bower_components/o-typography/.github/workflows/automatic-tag-and-release.yml +21 -0
- package/bower_components/o-typography/.github/workflows/percy.yml +35 -0
- package/bower_components/o-typography/.github/workflows/release-origami-component.yml +29 -0
- package/bower_components/o-typography/.github/workflows/sync-repo-labels.yml +12 -0
- package/bower_components/o-typography/.github/workflows/test-origami-component.yml +22 -0
- package/bower_components/o-typography/.remarkrc.js +1 -0
- package/bower_components/o-typography/.stylelintrc.js +3 -0
- package/bower_components/o-typography/MIGRATION.md +512 -0
- package/bower_components/o-typography/README.md +258 -292
- package/bower_components/o-typography/app.json +12 -0
- package/bower_components/o-typography/bower.json +6 -4
- package/bower_components/o-typography/demos/src/body.mustache +1 -1
- package/bower_components/o-typography/demos/src/demo.js +4 -4
- package/bower_components/o-typography/demos/src/demo.scss +12 -9
- package/bower_components/o-typography/demos/src/headings.mustache +1 -10
- package/bower_components/o-typography/demos/src/line-width.mustache +3 -3
- package/bower_components/o-typography/demos/src/links.mustache +5 -0
- package/bower_components/o-typography/demos/src/lists.mustache +42 -9
- package/bower_components/o-typography/demos/src/wrapper.mustache +2 -8
- package/bower_components/o-typography/main.js +1 -1
- package/bower_components/o-typography/main.scss +88 -178
- package/bower_components/o-typography/origami.json +9 -67
- package/bower_components/o-typography/package.json +16 -5
- package/bower_components/o-typography/src/js/typography.js +18 -11
- package/bower_components/o-typography/src/scss/_brand.scss +170 -190
- package/bower_components/o-typography/src/scss/_functions.scss +52 -52
- package/bower_components/o-typography/src/scss/_mixins.scss +248 -71
- package/bower_components/o-typography/src/scss/_variables.scss +25 -28
- package/bower_components/o-typography/src/scss/use-cases/_general.scss +277 -191
- package/bower_components/o-typography/src/scss/use-cases/_wrapper.scss +49 -84
- package/bower_components/o-typography/test/origami.test.js +5 -5
- package/bower_components/o-typography/test/scss/_functions.test.scss +7 -0
- package/bower_components/o-typography/test/scss/_mixins.test.scss +640 -188
- package/bower_components/o-typography/test/scss/index.test.scss +1 -0
- package/bower_components/o-typography/test/typography.test.js +14 -39
- package/bower_components/sass-mq/README.md +22 -15
- package/bower_components/sass-mq/_mq.scss +28 -12
- package/bower_components/sass-mq/package.json +61 -0
- package/dist/TopicSearch.cjs.js +177 -208
- package/dist/TopicSearch.css +226 -137
- package/dist/TopicSearch.es5.js +310 -288
- package/dist/TopicSearch.esm.js +177 -208
- package/package.json +4 -4
- package/readme.md +9 -8
- package/storybook/index.jsx +52 -0
- package/bower_components/fticons/.circleci/config.yml +0 -59
- package/bower_components/o-assets/.circleci/config.yml +0 -36
- package/bower_components/o-colors/.circleci/config.yml +0 -36
- package/bower_components/o-colors/demos/src/sandboxes/colors-mix.js +0 -103
- package/bower_components/o-colors/demos/src/sandboxes/colors-mix.mustache +0 -135
- package/bower_components/o-colors/demos/src/sandboxes/contrast-checker.js +0 -41
- package/bower_components/o-colors/demos/src/sandboxes/contrast-checker.mustache +0 -76
- package/bower_components/o-colors/demos/src/sandboxes/contrast-checker.scss +0 -61
- package/bower_components/o-colors/demos/src/tints.mustache +0 -15
- package/bower_components/o-colors/designguidelines.md +0 -3
- package/bower_components/o-colors/migration-guide.md +0 -66
- package/bower_components/o-colors/src/scss/tools/_a11y.scss +0 -55
- package/bower_components/o-colors/src/scss/tools/_color.scss +0 -95
- package/bower_components/o-colors/src/scss/tools/_error.scss +0 -9
- package/bower_components/o-fonts/.circleci/config.yml +0 -36
- package/bower_components/o-grid/.circleci/config.yml +0 -36
- package/bower_components/o-grid/demos/src/scss/ie8.scss +0 -8
- package/bower_components/o-icons/.circleci/config.yml +0 -36
- package/bower_components/o-icons/buildImageList.js +0 -21
- package/bower_components/o-icons/demos/src/test.mustache +0 -19
- package/bower_components/o-icons/designguidelines.md +0 -3
- package/bower_components/o-icons/scss/_mixins.scss +0 -86
- package/bower_components/o-icons/scss/_variables.scss +0 -25
- package/bower_components/o-typography/.circleci/config.yml +0 -36
- package/bower_components/o-typography/demos/src/article.mustache +0 -47
- package/bower_components/o-typography/demos/src/big-number.mustache +0 -1
- package/bower_components/o-typography/demos/src/blockquote.mustache +0 -4
- package/bower_components/o-typography/demos/src/product-headings.mustache +0 -9
- package/bower_components/o-typography/demos/src/read-next.mustache +0 -1
- package/bower_components/o-typography/migrating-v4-v5.md +0 -51
- package/bower_components/o-typography/src/scss/_deprecated.scss +0 -17
- package/bower_components/o-typography/src/scss/_type-mixins.scss +0 -152
- package/bower_components/o-typography/src/scss/use-cases/_article.scss +0 -63
- package/bower_components/o-typography/src/scss/use-cases/_asides.scss +0 -43
- package/bower_components/o-typography/src/scss/use-cases/_headings.scss +0 -86
- package/bower_components/o-typography/src/scss/use-cases/_product-headings.scss +0 -76
|
@@ -1,127 +1,128 @@
|
|
|
1
|
-
const fetchMock = require('fetch-mock')
|
|
2
|
-
const { h } = require('@financial-times/x-engine')
|
|
3
|
-
const { mount } = require('@financial-times/x-test-utils/enzyme')
|
|
4
|
-
const { TopicSearch } = require('../')
|
|
5
|
-
|
|
6
|
-
const minSearchLength = 3
|
|
7
|
-
const maxSuggestions = 3
|
|
8
|
-
const apiUrl = 'api-url'
|
|
9
|
-
const FOLLOWED_TOPIC_ID1 = 'Cat-House-id'
|
|
10
|
-
const FOLLOWED_TOPIC_ID2 = 'Cat-Food-id'
|
|
11
|
-
const UNFOLLOWED_TOPIC_ID1 = 'Cat-Toys-id'
|
|
1
|
+
const fetchMock = require('fetch-mock')
|
|
2
|
+
const { h } = require('@financial-times/x-engine')
|
|
3
|
+
const { mount } = require('@financial-times/x-test-utils/enzyme')
|
|
4
|
+
const { TopicSearch } = require('../')
|
|
5
|
+
|
|
6
|
+
const minSearchLength = 3
|
|
7
|
+
const maxSuggestions = 3
|
|
8
|
+
const apiUrl = 'api-url'
|
|
9
|
+
const FOLLOWED_TOPIC_ID1 = 'Cat-House-id'
|
|
10
|
+
const FOLLOWED_TOPIC_ID2 = 'Cat-Food-id'
|
|
11
|
+
const UNFOLLOWED_TOPIC_ID1 = 'Cat-Toys-id'
|
|
12
12
|
|
|
13
13
|
describe('x-topic-search', () => {
|
|
14
|
-
const buildSearchUrl = term => `${apiUrl}?count=${maxSuggestions}&partial=${term}
|
|
15
|
-
const enterSearchTerm = searchTerm => {
|
|
16
|
-
target.find('input').simulate('input', { target: { value: searchTerm }})
|
|
14
|
+
const buildSearchUrl = (term) => `${apiUrl}?count=${maxSuggestions}&partial=${term}`
|
|
15
|
+
const enterSearchTerm = (searchTerm) => {
|
|
16
|
+
target.find('input').simulate('input', { target: { value: searchTerm } })
|
|
17
17
|
|
|
18
|
-
return new Promise(resolve => {
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
return new Promise((resolve) => {
|
|
19
|
+
setTimeout(resolve, 400)
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
let target
|
|
21
23
|
|
|
22
24
|
beforeEach(() => {
|
|
23
25
|
const props = {
|
|
24
26
|
minSearchLength,
|
|
25
27
|
maxSuggestions,
|
|
26
28
|
apiUrl,
|
|
27
|
-
followedTopicIds: [FOLLOWED_TOPIC_ID1, FOLLOWED_TOPIC_ID2]
|
|
28
|
-
}
|
|
29
|
-
target = mount(<TopicSearch {...props} />)
|
|
30
|
-
})
|
|
29
|
+
followedTopicIds: [FOLLOWED_TOPIC_ID1, FOLLOWED_TOPIC_ID2]
|
|
30
|
+
}
|
|
31
|
+
target = mount(<TopicSearch {...props} />)
|
|
32
|
+
})
|
|
31
33
|
|
|
32
34
|
afterEach(() => {
|
|
33
|
-
fetchMock.reset()
|
|
34
|
-
})
|
|
35
|
+
fetchMock.reset()
|
|
36
|
+
})
|
|
35
37
|
|
|
36
38
|
describe('initial rendering', () => {
|
|
37
39
|
it('should render with input box', () => {
|
|
38
|
-
expect(target.find('input').exists()).toBe(true)
|
|
39
|
-
})
|
|
40
|
+
expect(target.find('input').exists()).toBe(true)
|
|
41
|
+
})
|
|
40
42
|
|
|
41
43
|
it('should not display result container', () => {
|
|
42
|
-
expect(target.render().children('div')).toHaveLength(1)
|
|
43
|
-
})
|
|
44
|
-
})
|
|
44
|
+
expect(target.render().children('div')).toHaveLength(1)
|
|
45
|
+
})
|
|
46
|
+
})
|
|
45
47
|
|
|
46
48
|
describe('when input receives focus', () => {
|
|
47
49
|
it('selects the text in the input', () => {
|
|
48
|
-
const selectMock = jest.fn()
|
|
49
|
-
const inputBox = target.find('input')
|
|
50
|
+
const selectMock = jest.fn()
|
|
51
|
+
const inputBox = target.find('input')
|
|
50
52
|
|
|
51
|
-
inputBox.simulate('blur')
|
|
52
|
-
inputBox.simulate('focus', { target: { select: selectMock }})
|
|
53
|
+
inputBox.simulate('blur')
|
|
54
|
+
inputBox.simulate('focus', { target: { select: selectMock } })
|
|
53
55
|
|
|
54
|
-
expect(selectMock).toHaveBeenCalledTimes(1)
|
|
55
|
-
})
|
|
56
|
-
})
|
|
56
|
+
expect(selectMock).toHaveBeenCalledTimes(1)
|
|
57
|
+
})
|
|
58
|
+
})
|
|
57
59
|
|
|
58
60
|
describe('given inputted text is shorter than minSearchLength', () => {
|
|
59
|
-
const apiUrlWithResults = buildSearchUrl('a')
|
|
60
|
-
|
|
61
|
-
fetchMock.get(apiUrlWithResults, []);
|
|
61
|
+
const apiUrlWithResults = buildSearchUrl('a')
|
|
62
62
|
|
|
63
63
|
beforeEach(() => {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
fetchMock.get(apiUrlWithResults, [])
|
|
65
|
+
return enterSearchTerm('a')
|
|
66
|
+
})
|
|
66
67
|
|
|
67
68
|
it('does not make a request to the api or render any result', () => {
|
|
68
|
-
expect(fetchMock.called(apiUrlWithResults)).toBe(false)
|
|
69
|
-
expect(target.render().children('div')).toHaveLength(1)
|
|
70
|
-
})
|
|
71
|
-
})
|
|
69
|
+
expect(fetchMock.called(apiUrlWithResults)).toBe(false)
|
|
70
|
+
expect(target.render().children('div')).toHaveLength(1)
|
|
71
|
+
})
|
|
72
|
+
})
|
|
72
73
|
|
|
73
74
|
describe('given searchTerm which has some topic suggestions to follow', () => {
|
|
74
|
-
const apiUrlWithResults = buildSearchUrl('Cat')
|
|
75
|
+
const apiUrlWithResults = buildSearchUrl('Cat')
|
|
75
76
|
const results = [
|
|
76
77
|
{ id: FOLLOWED_TOPIC_ID1, prefLabel: 'Cat House', url: 'Cat-House-url' },
|
|
77
78
|
{ id: FOLLOWED_TOPIC_ID2, prefLabel: 'Cat Food', url: 'Cat-Food-url' },
|
|
78
79
|
{ id: UNFOLLOWED_TOPIC_ID1, prefLabel: 'Cat Toys', url: 'Cat-Toys-url' }
|
|
79
|
-
]
|
|
80
|
-
|
|
81
|
-
fetchMock.get(apiUrlWithResults, results);
|
|
80
|
+
]
|
|
82
81
|
|
|
83
82
|
beforeEach(() => {
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
fetchMock.get(apiUrlWithResults, results)
|
|
84
|
+
return enterSearchTerm('Cat')
|
|
85
|
+
})
|
|
86
86
|
|
|
87
87
|
it('requests the topic suggestions with count set to maxSuggestions', () => {
|
|
88
|
-
expect(fetchMock.called(apiUrlWithResults)).toBe(true)
|
|
89
|
-
})
|
|
88
|
+
expect(fetchMock.called(apiUrlWithResults)).toBe(true)
|
|
89
|
+
})
|
|
90
90
|
|
|
91
91
|
it('renders no more than the max number of suggestions', () => {
|
|
92
|
-
expect(target.render().children('div')).toHaveLength(2)
|
|
93
|
-
expect(target.render().find('li')).toHaveLength(maxSuggestions)
|
|
94
|
-
})
|
|
92
|
+
expect(target.render().children('div')).toHaveLength(2)
|
|
93
|
+
expect(target.render().find('li')).toHaveLength(maxSuggestions)
|
|
94
|
+
})
|
|
95
95
|
|
|
96
96
|
it('renders links and follow buttons for each suggestion', () => {
|
|
97
|
-
const suggestionsList = target.render().find('li')
|
|
97
|
+
const suggestionsList = target.render().find('li')
|
|
98
98
|
|
|
99
99
|
results.forEach((topic, index) => {
|
|
100
|
-
const suggestion = suggestionsList.eq(index)
|
|
101
|
-
|
|
102
|
-
expect(suggestion.find('a').text()).toEqual(topic.prefLabel)
|
|
103
|
-
expect(suggestion.find('a').attr('href')).toEqual(topic.url)
|
|
104
|
-
expect(suggestion.find('button').text()).toEqual(
|
|
105
|
-
|
|
100
|
+
const suggestion = suggestionsList.eq(index)
|
|
101
|
+
|
|
102
|
+
expect(suggestion.find('a').text()).toEqual(topic.prefLabel)
|
|
103
|
+
expect(suggestion.find('a').attr('href')).toEqual(topic.url)
|
|
104
|
+
expect(suggestion.find('button').text()).toEqual(
|
|
105
|
+
topic.id === UNFOLLOWED_TOPIC_ID1 ? 'Add to myFT' : 'Added'
|
|
106
|
+
)
|
|
107
|
+
})
|
|
106
108
|
})
|
|
107
|
-
})
|
|
109
|
+
})
|
|
108
110
|
|
|
109
111
|
describe('given searchTerm which has no topic suggestions to follow', () => {
|
|
110
|
-
const apiUrlNoResults = buildSearchUrl('Dog')
|
|
111
|
-
|
|
112
|
-
fetchMock.get(apiUrlNoResults, []);
|
|
112
|
+
const apiUrlNoResults = buildSearchUrl('Dog')
|
|
113
113
|
|
|
114
114
|
beforeEach(() => {
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
fetchMock.get(apiUrlNoResults, [])
|
|
116
|
+
return enterSearchTerm('Dog')
|
|
117
|
+
})
|
|
117
118
|
|
|
118
119
|
it('requests from the api and renders the no matching topics message', () => {
|
|
119
|
-
expect(fetchMock.called(apiUrlNoResults)).toBe(true)
|
|
120
|
+
expect(fetchMock.called(apiUrlNoResults)).toBe(true)
|
|
120
121
|
|
|
121
|
-
const resultContainer = target.render().children('div').eq(1)
|
|
122
|
+
const resultContainer = target.render().children('div').eq(1)
|
|
122
123
|
|
|
123
|
-
expect(resultContainer).toHaveLength(1)
|
|
124
|
-
expect(resultContainer.find('h2').text()).toMatch('No topics matching')
|
|
125
|
-
})
|
|
126
|
-
})
|
|
127
|
-
})
|
|
124
|
+
expect(resultContainer).toHaveLength(1)
|
|
125
|
+
expect(resultContainer.find('h2').text()).toMatch('No topics matching')
|
|
126
|
+
})
|
|
127
|
+
})
|
|
128
|
+
})
|
package/bower.json
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
"main": "dist/TopicSearch.es5.js",
|
|
4
4
|
"private": true,
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"o-icons": "^
|
|
7
|
-
"o-typography": "^
|
|
8
|
-
"o-
|
|
6
|
+
"o-icons": "^6.3.0",
|
|
7
|
+
"o-typography": "^6.4.6",
|
|
8
|
+
"o-editorial-typography": "^1.2.1",
|
|
9
|
+
"o-colors": "^5.4.1"
|
|
9
10
|
}
|
|
10
11
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fontfaceobserver",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Detect if web fonts are available",
|
|
5
|
+
"directories": {
|
|
6
|
+
"test": "test"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/bramstein/fontfaceobserver.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/bramstein/fontfaceobserver/issues"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://fontfaceobserver.com/",
|
|
16
|
+
"main": "fontfaceobserver.standalone.js",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"fontloader",
|
|
19
|
+
"fonts",
|
|
20
|
+
"font",
|
|
21
|
+
"font-face",
|
|
22
|
+
"web font",
|
|
23
|
+
"font load",
|
|
24
|
+
"font events"
|
|
25
|
+
],
|
|
26
|
+
"files": [
|
|
27
|
+
"fontfaceobserver.js",
|
|
28
|
+
"fontfaceobserver.standalone.js",
|
|
29
|
+
"src/*.js",
|
|
30
|
+
"externs.js"
|
|
31
|
+
],
|
|
32
|
+
"author": "Bram Stein <b.l.stein@gmail.com> (http://www.bramstein.com/)",
|
|
33
|
+
"license": "BSD-3-Clause",
|
|
34
|
+
"dependencies": {},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"closure-dom": "=0.2.6",
|
|
37
|
+
"extend": "^3.0.0",
|
|
38
|
+
"google-closure-compiler": "=20161024.0.0",
|
|
39
|
+
"grunt": "^1.0.3",
|
|
40
|
+
"grunt-contrib-clean": "^1.0.0",
|
|
41
|
+
"grunt-contrib-concat": "^1.0.1",
|
|
42
|
+
"grunt-contrib-jshint": "^1.0.0",
|
|
43
|
+
"grunt-exec": "~1.0.0",
|
|
44
|
+
"mocha": "^5.2.0",
|
|
45
|
+
"mocha-phantomjs-core": "^2.0.0",
|
|
46
|
+
"phantomjs-prebuilt": "^2.1.7",
|
|
47
|
+
"promis": "=1.1.4",
|
|
48
|
+
"sinon": "^1.17.4",
|
|
49
|
+
"unexpected": "^10.14.2"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"preversion": "npm test",
|
|
53
|
+
"version": "grunt dist && git add fontfaceobserver.js && git add fontfaceobserver.standalone.js",
|
|
54
|
+
"postversion": "git push && git push --tags && rm -rf build && npm publish",
|
|
55
|
+
"test": "grunt test"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fticons",
|
|
3
3
|
"homepage": "https://github.com/Financial-Times/fticons",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"_release": "1.
|
|
4
|
+
"version": "1.23.2",
|
|
5
|
+
"_release": "1.23.2",
|
|
6
6
|
"_resolution": {
|
|
7
7
|
"type": "version",
|
|
8
|
-
"tag": "v1.
|
|
9
|
-
"commit": "
|
|
8
|
+
"tag": "v1.23.2",
|
|
9
|
+
"commit": "580a76d5ba6c6718675990f17ac991b623668170"
|
|
10
10
|
},
|
|
11
11
|
"_source": "https://github.com/Financial-Times/fticons.git",
|
|
12
|
-
"_target": "^1.
|
|
12
|
+
"_target": "^1.23.1",
|
|
13
13
|
"_originalSource": "fticons"
|
|
14
14
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
# This file adds the owner as a reviewer for all pull requests made to this repository.
|
|
3
3
|
# It references owners by source order - the last matching pattern takes the most precedence.
|
|
4
4
|
|
|
5
|
-
# If you would like to be added as an owner, please get in touch with the Origami team at origami.support@ft.com or #
|
|
5
|
+
# If you would like to be added as an owner, please get in touch with the Origami team at origami.support@ft.com or #origami-support on Slack
|
|
6
6
|
|
|
7
7
|
* @Financial-Times/origami-core
|
|
@@ -6,7 +6,7 @@ title: Issue: [type] [short description]
|
|
|
6
6
|
<!--
|
|
7
7
|
Please make sure you've checked that your issue hasn't already been raised within this repository.
|
|
8
8
|
|
|
9
|
-
If you need help with submitting an issue, please get in touch with the Origami Team at origami.support@ft.com or #
|
|
9
|
+
If you need help with submitting an issue, please get in touch with the Origami Team at origami.support@ft.com or #origami-support on Slack.
|
|
10
10
|
-->
|
|
11
11
|
## What
|
|
12
12
|
<!-- A clear description of what the problem or feature request is -->
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
- [ ] Icons should have square rather than rounded corners where suitable
|
|
14
14
|
- [ ] Icons must be SVG v1.1
|
|
15
15
|
- [ ] Icons must have been run through an SVG compression service (such as SVGOMG)
|
|
16
|
-
- [ ] Icons should have a bounding box of 1024.
|
|
17
16
|
- [ ] Icon names must be made up only of lowecase a-z, or a hyphen
|
|
18
17
|
- [ ] Icon names must include the .svg file extension
|
|
19
18
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: Add new issues and pull requests to Origami Project Board
|
|
2
|
+
on:
|
|
3
|
+
- issues
|
|
4
|
+
- pull_request_target
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
origami_project_board_job:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
name: Add new issue or pull request to Origami Project Board
|
|
10
|
+
steps:
|
|
11
|
+
- name: Add new issue or pull request to Origami Project Board
|
|
12
|
+
id: origami-project-board
|
|
13
|
+
uses: Financial-Times/origami-project-board-action@v1
|
|
14
|
+
with:
|
|
15
|
+
origami-fox-access-token: ${{ secrets.ORIGAMI_FOX_ACCESS_TOKEN }}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
name: Apply Origami labels
|
|
2
|
+
on:
|
|
3
|
+
- issues
|
|
4
|
+
- pull_request_target
|
|
5
|
+
jobs:
|
|
6
|
+
apply-labels:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
name: Apply Origami labels to new issues and pull requests.
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v2
|
|
11
|
+
- uses: Financial-Times/origami-apply-labels@v1
|
|
12
|
+
with:
|
|
13
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Auto Approve Dependabot PRs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request_target:
|
|
5
|
+
types: [labeled]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
auto-update-dependabot:
|
|
9
|
+
name: Auto-Approve and enable Auto-Merge for all Dependabot PRs
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies')
|
|
12
|
+
steps:
|
|
13
|
+
|
|
14
|
+
# Enable auto-merge *before* issuing an approval.
|
|
15
|
+
- name: Enable Github Automerge
|
|
16
|
+
uses: alexwilson/enable-github-automerge-action@main
|
|
17
|
+
with:
|
|
18
|
+
github-token: "${{ secrets.ORIGAMI_FOX_ACCESS_TOKEN }}"
|
|
19
|
+
|
|
20
|
+
# We "trust" dependabot updates (this still requires all other checks to pass!)
|
|
21
|
+
- uses: hmarr/auto-approve-action@5d04a5ca6da9aeb8ca9f31a5239b96fc3e003029
|
|
22
|
+
with:
|
|
23
|
+
github-token: "${{ secrets.ORIGAMI_FOX_ACCESS_TOKEN }}"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
on:
|
|
2
|
+
pull_request:
|
|
3
|
+
types: [closed] # Merged pull-requests count as closed pull-requests.
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
create-new-version:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
name: Create new version/tag
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v2
|
|
11
|
+
if: github.event.pull_request.merged # Only run on merged pull-requests
|
|
12
|
+
with:
|
|
13
|
+
ref: ${{ github.event.pull_request.merge_commit_sha }} # Checkout the merged commit
|
|
14
|
+
fetch-depth: 0
|
|
15
|
+
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* # Get all tags from the origin
|
|
16
|
+
if: github.event.pull_request.merged # Only run on merged pull-requests
|
|
17
|
+
- uses: Financial-Times/origami-version@v1.2.1
|
|
18
|
+
name: Create new version/tag
|
|
19
|
+
if: github.event.pull_request.merged # Only run on merged pull-requests
|
|
20
|
+
with:
|
|
21
|
+
github-token: ${{ secrets.ORIGAMI_GITHUB_TOKEN }}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Publish to npm and s3
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [created]
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v2
|
|
10
|
+
- uses: actions/setup-node@v2.1.5
|
|
11
|
+
with:
|
|
12
|
+
node-version: '12.x'
|
|
13
|
+
registry-url: 'https://registry.npmjs.org'
|
|
14
|
+
- run: git config --global user.email "origami.support@ft.com";
|
|
15
|
+
- run: git config --global user.name "origamiserviceuser [bot]";
|
|
16
|
+
- run: npm ci
|
|
17
|
+
- name: Get the version
|
|
18
|
+
id: version
|
|
19
|
+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
|
20
|
+
- run: npm version --no-git-tag-version ${{ steps.version.outputs.VERSION }}
|
|
21
|
+
- run: git push origin HEAD:master
|
|
22
|
+
- run: npm publish
|
|
23
|
+
env:
|
|
24
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
25
|
+
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
|
|
26
|
+
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Icon set for FT
|
|
1
|
+
# Icon set for FT
|
|
2
2
|
This is the (new) icon set for FT websites. It replaces the assets in [o-icons](http://github.com/financial-times/o-icons).
|
|
3
3
|
|
|
4
4
|
The icons have been designed to work best at 40px width and height. At this size they align precisely with the pixel grid and do not appear blurry on screens with a DPR of 1 (non-retina screens).
|
|
@@ -80,7 +80,7 @@ The following icons no longer exist:
|
|
|
80
80
|
|
|
81
81
|
## Contact
|
|
82
82
|
|
|
83
|
-
If you have any questions or comments about this component, or need help using it, please either [raise an issue](https://github.com/Financial-Times/fticons/issues), visit [#
|
|
83
|
+
If you have any questions or comments about this component, or need help using it, please either [raise an issue](https://github.com/Financial-Times/fticons/issues), visit [#origami-support](https://financialtimes.slack.com/messages/origami-support/) or email [Origami Support](mailto:origami-support@ft.com).
|
|
84
84
|
|
|
85
85
|
----
|
|
86
86
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# How to contribute to fticons
|
|
2
2
|
|
|
3
|
-
Thank you for your interest in contributing to fticons! As our icons are used by a lot of different applications, we have a few constraints for new ones. If you aren't sure if your new icon meets any of these, please [raise an issue](http://github.com/financial-times/fticons/issues), or ask in the [#
|
|
3
|
+
Thank you for your interest in contributing to fticons! As our icons are used by a lot of different applications, we have a few constraints for new ones. If you aren't sure if your new icon meets any of these, please [raise an issue](http://github.com/financial-times/fticons/issues), or ask in the [#origami-support slack channel](https://financialtimes.slack.com/messages/origami-support/).
|
|
4
4
|
Thank you!
|
|
5
5
|
|
|
6
6
|
## Adding or updating an icon
|
|
@@ -24,8 +24,6 @@ If you want to add or update an icon, please open a pull request, making sure th
|
|
|
24
24
|
1. Icons must have been run through an SVG compression service (such as [SVGOMG](https://jakearchibald.github.io/svgomg/))
|
|
25
25
|
1. Icons must have been tested with the [Responsive Image Service](https://www.ft.com/__origami/service/image/v2/docs/url-builder)'s SVG -> PNG conversion. [How do I do this?](#how-to-test-an-icon-with-the-image-service)
|
|
26
26
|
1. Icons must have been tested with the Image Service's tinting option. [How do I do this?](#how-to-test-an-icon-with-the-image-service)
|
|
27
|
-
1. Icons should have a bounding box of 1024. This is because of a quirk with the Image Service, whereby a conversion from SVG to PNG will be very blurry if the _source_ SVG has a small viewBox.
|
|
28
|
-
|
|
29
27
|
|
|
30
28
|
### Naming conventions:
|
|
31
29
|
|