Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24d92f8f1d | ||
|
|
06fa4a528d | ||
|
|
3992b01883 | ||
|
|
909a6cf1c4 | ||
|
|
cdd0623792 | ||
|
|
0fd63998b9 | ||
|
|
7466383539 | ||
|
|
31ea9450b6 | ||
|
|
e70bf214b8 | ||
|
|
fb46c75128 | ||
|
|
4b2ed58009 | ||
|
|
c86778cc7b | ||
|
|
99bb8f64f6 | ||
|
|
3691e75d77 | ||
|
|
3904e85e61 | ||
|
|
4fcee649df | ||
|
|
e4bf096aaf | ||
|
|
cdb0d80cde |
@@ -10,7 +10,7 @@ Please see our [Contributor Code of Conduct](./CODE_OF_CONDUCT.md) for informati
|
||||
|
||||
## Creating an Issue
|
||||
|
||||
* If you have a question about using Ionicons, please ask on the [Ionic Forum](http://forum.ionicframework.com/) or in the [Ionic Worldwide Slack](http://ionicworldwide.herokuapp.com/) group.
|
||||
* If you have a question about using Ionicons, please ask on the [Ionic Forum](http://forum.ionicframework.com/) or in the [Ionic Discord](https://ionic.link/discord).
|
||||
|
||||
* It is required that you clearly describe the steps necessary to reproduce the issue you are running into. Although we would love to help our users as much as possible, diagnosing issues without clear reproduction steps is extremely time-consuming and simply not sustainable.
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ inputs:
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- uses: actions/download-artifact@v2
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: ${{ inputs.path }}
|
||||
|
||||
@@ -18,6 +18,9 @@ runs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16.x
|
||||
- name: Install latest npm
|
||||
run: npm install -g npm@latest
|
||||
shell: bash
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
shell: bash
|
||||
@@ -37,6 +40,6 @@ runs:
|
||||
env:
|
||||
NPM_TOKEN: ${{ inputs.token }}
|
||||
- name: Publish to NPM
|
||||
run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }}
|
||||
run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }} --provenance
|
||||
shell: bash
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
|
||||
@@ -59,7 +59,7 @@ runs:
|
||||
rsync -R --progress $(git diff --name-only --cached) updated-screenshots
|
||||
echo 'copied images'
|
||||
if [ -d updated-screenshots ]; then
|
||||
echo "::set-output name=hasUpdatedScreenshots::$(echo 'true')"
|
||||
echo "hasUpdatedScreenshots=$(echo 'true')" >> $GITHUB_OUTPUT
|
||||
cd updated-screenshots
|
||||
ls
|
||||
zip -q -r ../UpdatedScreenshots-${{ inputs.shard }}-${{ inputs.totalShards }}.zip ./
|
||||
|
||||
@@ -13,7 +13,7 @@ runs:
|
||||
- name: Create Archive
|
||||
run: zip -q -r ${{ inputs.output }} ${{ inputs.paths }}
|
||||
shell: bash
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: ${{ inputs.output }}
|
||||
@@ -18,6 +18,8 @@ on:
|
||||
jobs:
|
||||
release-core:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/workflows/actions/publish-npm
|
||||
@@ -25,4 +27,4 @@ jobs:
|
||||
tag: ${{ inputs.tag }}
|
||||
version: ${{ inputs.version }}
|
||||
working-directory: './'
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test-e2e]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
# Normally, we could just push with the
|
||||
# default GITHUB_TOKEN, but that will
|
||||
# not cause the build workflow
|
||||
|
||||
@@ -3,6 +3,50 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [7.1.2](https://github.com/ionic-team/ionicons/compare/v7.1.1...v7.1.2) (2023-05-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **icon:** add :dir fallback ([#1223](https://github.com/ionic-team/ionicons/issues/1223)) ([06fa4a5](https://github.com/ionic-team/ionicons/commit/06fa4a528dd1906a5673ff6d80d22aef0f6e113b))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [7.1.2](https://github.com/ionic-team/ionicons/compare/v7.1.1...v7.1.2) (2023-05-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **icon:** add :dir fallback ([#1223](https://github.com/ionic-team/ionicons/issues/1223)) ([06fa4a5](https://github.com/ionic-team/ionicons/commit/06fa4a528dd1906a5673ff6d80d22aef0f6e113b))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [7.1.1](https://github.com/ionic-team/ionicons/compare/v7.1.0...v7.1.1) (2023-05-23)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **icon:** respond to changes of document dir ([#1210](https://github.com/ionic-team/ionicons/issues/1210)) ([e70bf21](https://github.com/ionic-team/ionicons/commit/e70bf214b82cd2187ea9394803283570d28ab28c))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [7.1.0](https://github.com/ionic-team/ionicons/compare/v7.0.0...v7.1.0) (2023-03-23)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* chevron-expand and chevron-collapse icons ([#1198](https://github.com/ionic-team/ionicons/issues/1198)) ([cdb0d80](https://github.com/ionic-team/ionicons/commit/cdb0d80cde1dc5dd90fb2a1c3b4fa31d68294821))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [7.0.0](https://github.com/ionic-team/ionicons/compare/v6.1.3...v7.0.0) (2023-03-07)
|
||||
|
||||
**Migration Note:** Developers should ensure that their `<ion-icon>` usages have either `aria-label` or `aria-hidden` to avoid accessibility issues. See https://ionic.io/ionicons/usage for more information.
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
"packages": [
|
||||
"./"
|
||||
],
|
||||
"version": "7.0.0"
|
||||
"version": "7.1.2"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ionicons",
|
||||
"version": "7.0.0",
|
||||
"version": "7.1.2",
|
||||
"description": "Premium icons for Ionic.",
|
||||
"files": [
|
||||
"components/",
|
||||
@@ -26,20 +26,20 @@
|
||||
"@stencil/core": "^2.18.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.26.1",
|
||||
"@types/fs-extra": "^9.0.6",
|
||||
"@types/jest": "^26.0.20",
|
||||
"@types/node": "^14.14.22",
|
||||
"@playwright/test": "^1.33.0",
|
||||
"@types/fs-extra": "^11.0.1",
|
||||
"@types/jest": "^27.0.3",
|
||||
"@types/node": "^20.2.1",
|
||||
"@types/svgo": "^1.3.3",
|
||||
"fs-extra": "^9.1.0",
|
||||
"jest": "^26.6.3",
|
||||
"jest-cli": "^26.6.3",
|
||||
"lerna": "^6.0.3",
|
||||
"puppeteer": "^10.4.0",
|
||||
"semver": "^7.3.8",
|
||||
"serve": "^14.0.1",
|
||||
"fs-extra": "^11.1.1",
|
||||
"jest": "^27.0.3",
|
||||
"jest-cli": "^27.0.3",
|
||||
"lerna": "^6.6.2",
|
||||
"puppeteer": "^20.2.1",
|
||||
"semver": "^7.5.1",
|
||||
"serve": "^14.2.0",
|
||||
"svgo": "1.3.2",
|
||||
"typescript": "^4.1.3"
|
||||
"typescript": "^5.0.4"
|
||||
},
|
||||
"keywords": [
|
||||
"icon pack",
|
||||
|
||||
@@ -114,8 +114,7 @@ Ionicons is licensed under the [MIT license](http://opensource.org/licenses/MIT)
|
||||
|
||||
* [Ionicons Homepage](http://ionicons.com/)
|
||||
* [Ionic Framework](https://ionicframework.com/)
|
||||
* [Ionic Worldwide Slack](http://ionicworldwide.herokuapp.com/)
|
||||
* [Ionic Discord](https://ionic.link/discord)
|
||||
* [Ionic Forum](https://forum.ionicframework.com/)
|
||||
* [Stencil](https://stenciljs.com/)
|
||||
* [Stencil Worldwide Slack](https://stencil-worldwide.slack.com)
|
||||
* [Capacitor](https://capacitorjs.com/)
|
||||
|
||||
@@ -94,7 +94,7 @@ async function optimizeSvgs(srcSvgData: SvgData[]) {
|
||||
if (item.isElem()) {
|
||||
item.eachAttr((attr) => {
|
||||
if (attr.name === 'stroke' || attr.name === 'fill') {
|
||||
if (attr.value === '#000') {
|
||||
if (attr.value === '#000' || attr.value === 'currentColor') {
|
||||
item.addAttr({
|
||||
name: attr.name,
|
||||
value: 'currentColor',
|
||||
|
||||
@@ -33,15 +33,58 @@ svg {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
/* Icon RTL
|
||||
* -----------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Safari <16.4 incorrectly reports
|
||||
* that it supports :dir(rtl) when it does not.
|
||||
* This @supports statement lets us target
|
||||
* WebKit browsers to apply the RTL fallback.
|
||||
* -webkit-named-image only exists on WebKit.
|
||||
* For WebKit browsers that do support :dir(rtl)
|
||||
* (i.e. Safari >= 16.4) then the :dir(rtl)
|
||||
* code farther down on the page will take
|
||||
* effect and override this fallback.
|
||||
*/
|
||||
@supports (background: -webkit-named-image(i)) {
|
||||
:host(.icon-rtl) .icon-inner {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fallback for browsers that support
|
||||
* neither :host-context nor :dir.
|
||||
* The icon will not react to dir
|
||||
* changes, but it will at least
|
||||
* respect the dir on component load.
|
||||
*/
|
||||
@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])) {
|
||||
:host(.icon-rtl) .icon-inner {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
}
|
||||
|
||||
:host(.flip-rtl) .icon-inner {
|
||||
/* :host-context is supported in chromium; :dir is supported in safari & firefox */
|
||||
:host(.flip-rtl):host-context([dir='rtl']) .icon-inner {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
@supports selector(:dir(rtl)) {
|
||||
:host(.flip-rtl:dir(rtl)) .icon-inner {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
/**
|
||||
* This is needed for WebKit otherwise the fallback
|
||||
* will always cause the icon to be flipped if the document
|
||||
* loads in RTL.
|
||||
*/
|
||||
:host(.flip-rtl:dir(ltr)) .icon-inner {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* Icon Sizes
|
||||
* -----------------------------------------------------------
|
||||
@@ -51,11 +94,10 @@ svg {
|
||||
font-size: 18px !important;
|
||||
}
|
||||
|
||||
:host(.icon-large){
|
||||
:host(.icon-large) {
|
||||
font-size: 32px !important;
|
||||
}
|
||||
|
||||
|
||||
/* Icon Colors
|
||||
* -----------------------------------------------------------
|
||||
*/
|
||||
|
||||
@@ -100,7 +100,6 @@ export class Icon {
|
||||
this.io = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
private waitUntilVisible(el: HTMLElement, rootMargin: string, cb: () => void) {
|
||||
if (Build.isBrowser && this.lazy && typeof window !== 'undefined' && (window as any).IntersectionObserver) {
|
||||
const io = (this.io = new (window as any).IntersectionObserver(
|
||||
@@ -146,11 +145,14 @@ export class Icon {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { iconName, el, inheritedAttributes } = this;
|
||||
const { flipRtl, iconName, inheritedAttributes, el } = this;
|
||||
const mode = this.mode || 'md';
|
||||
const flipRtl =
|
||||
this.flipRtl ||
|
||||
(iconName && (iconName.indexOf('arrow') > -1 || iconName.indexOf('chevron') > -1) && this.flipRtl !== false);
|
||||
// we have designated that arrows & chevrons should automatically flip (unless flip-rtl is set to false) because "back" is left in ltr and right in rtl, and "forward" is the opposite
|
||||
const shouldAutoFlip = iconName
|
||||
? (iconName.includes('arrow') || iconName.includes('chevron')) && flipRtl !== false
|
||||
: false;
|
||||
// if shouldBeFlippable is true, the icon should change direction when `dir` changes
|
||||
const shouldBeFlippable = flipRtl || shouldAutoFlip;
|
||||
|
||||
return (
|
||||
<Host
|
||||
@@ -159,7 +161,8 @@ export class Icon {
|
||||
[mode]: true,
|
||||
...createColorClasses(this.color),
|
||||
[`icon-${this.size}`]: !!this.size,
|
||||
'flip-rtl': !!flipRtl && isRTL(el),
|
||||
'flip-rtl': shouldBeFlippable,
|
||||
'icon-rtl': shouldBeFlippable && isRTL(el)
|
||||
}}
|
||||
{...inheritedAttributes}
|
||||
>
|
||||
|
||||
@@ -4,10 +4,67 @@ import { test } from '@utils/test/playwright';
|
||||
test.describe('icon: basic', () => {
|
||||
test('should not have visual regressions', async ({ page }) => {
|
||||
await page.goto(`/`);
|
||||
|
||||
|
||||
// Wait for all SVGs to be lazily loaded before taking screenshots
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
expect(await page.screenshot({ fullPage: true })).toMatchSnapshot(`icon-diff.png`);
|
||||
});
|
||||
});
|
||||
|
||||
test('some icons should flip when rtl', async ({ page }) => {
|
||||
await page.goto(`/`);
|
||||
|
||||
const autoflip = page.locator('.auto-flip-chevrons [name=chevron-forward] .icon-inner');
|
||||
const unflip = page.locator('.un-flip-chevrons [name=chevron-forward] .icon-inner');
|
||||
await expect(autoflip).not.toHaveCSS('transform', /matrix\(-1/);
|
||||
await expect(unflip).not.toHaveCSS('transform', /matrix\(-1/);
|
||||
|
||||
await page.evaluate(() => {
|
||||
document.dir = 'rtl';
|
||||
});
|
||||
|
||||
await expect(autoflip).toHaveCSS('transform', /matrix\(-1/);
|
||||
await expect(unflip).not.toHaveCSS('transform', /matrix\(-1/);
|
||||
|
||||
// Wait for all SVGs to be lazily loaded before taking screenshots
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
const rtlTests = page.locator('#rtl-tests');
|
||||
await expect(rtlTests).toHaveScreenshot(`icon-rtl-diff.png`);
|
||||
});
|
||||
|
||||
test('arrows should flip if dir changes on the element', async ({ page }) => {
|
||||
await page.goto(`/`);
|
||||
|
||||
const autoflip = page.locator('.auto-flip-chevrons [name=chevron-forward] .icon-inner');
|
||||
const unflip = page.locator('.un-flip-chevrons [name=chevron-forward] .icon-inner');
|
||||
await expect(autoflip).not.toHaveCSS('transform', /matrix\(-1/);
|
||||
await expect(unflip).not.toHaveCSS('transform', /matrix\(-1/);
|
||||
|
||||
const autoflipEl = await page.$('.auto-flip-chevrons [name=chevron-forward]');
|
||||
const unflipEl = await page.$('.un-flip-chevrons [name=chevron-forward]');
|
||||
await autoflipEl!.evaluate((node) => node.setAttribute('dir', 'rtl'));
|
||||
await unflipEl!.evaluate((node) => node.setAttribute('dir', 'rtl'));
|
||||
|
||||
await expect(autoflip).toHaveCSS('transform', /matrix\(-1/);
|
||||
await expect(unflip).not.toHaveCSS('transform', /matrix\(-1/);
|
||||
});
|
||||
|
||||
test('icon should reassess flipping when name changes', async ({ page }) => {
|
||||
await page.goto(`/`);
|
||||
|
||||
await page.evaluate(() => {
|
||||
document.dir = 'rtl';
|
||||
});
|
||||
|
||||
const iconLoc = page.locator('.auto-flip-chevrons ion-icon:nth-child(2)');
|
||||
await expect(iconLoc).toHaveAttribute('name', 'chevron-forward');
|
||||
await expect(iconLoc).toHaveClass(/flip-rtl/);
|
||||
|
||||
const iconEl = await page.$('.auto-flip-chevrons ion-icon:nth-child(2)');
|
||||
await iconEl!.evaluate((node) => node.setAttribute('name', 'brush'));
|
||||
|
||||
await expect(iconLoc).toHaveAttribute('name', 'brush');
|
||||
await expect(iconLoc).not.toHaveClass(/flip-rtl/);
|
||||
});
|
||||
});
|
||||
|
||||
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 25 KiB |
@@ -24,7 +24,7 @@ describe('icon', () => {
|
||||
});
|
||||
|
||||
expect(root).toEqualHtml(`
|
||||
<ion-icon class="md flip-rtl" name="chevron-forward" role="img" aria-hidden="true">
|
||||
<ion-icon class="md flip-rtl icon-rtl" name="chevron-forward" role="img" aria-hidden="true">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
@@ -35,11 +35,11 @@ describe('icon', () => {
|
||||
it('renders custom aria-label', async () => {
|
||||
const { root } = await newSpecPage({
|
||||
components: [Icon],
|
||||
html: `<ion-icon name="chevron-forward" aria-label="custom label"></ion-icon>`,
|
||||
html: `<ion-icon name="star" aria-label="custom label"></ion-icon>`,
|
||||
});
|
||||
|
||||
expect(root).toEqualHtml(`
|
||||
<ion-icon class="md" name="chevron-forward" role="img" aria-label="custom label">
|
||||
<ion-icon class="md" name="star" role="img" aria-label="custom label">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
@@ -56,7 +56,7 @@ describe('icon', () => {
|
||||
const icon = page.root;
|
||||
|
||||
expect(icon).toEqualHtml(`
|
||||
<ion-icon class="md" name="chevron-forward" role="img" aria-label="custom label">
|
||||
<ion-icon class="flip-rtl md" name="chevron-forward" role="img" aria-label="custom label">
|
||||
<mock:shadow-root>
|
||||
<div class="icon-inner"></div>
|
||||
</mock:shadow-root>
|
||||
|
||||
@@ -2545,6 +2545,29 @@
|
||||
"sharp"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "chevron-collapse",
|
||||
"tags": [
|
||||
"chevron",
|
||||
"collapse"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "chevron-collapse-outline",
|
||||
"tags": [
|
||||
"chevron",
|
||||
"collapse",
|
||||
"outline"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "chevron-collapse-sharp",
|
||||
"tags": [
|
||||
"chevron",
|
||||
"collapse",
|
||||
"sharp"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "chevron-down",
|
||||
"tags": [
|
||||
@@ -2600,6 +2623,29 @@
|
||||
"sharp"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "chevron-expand",
|
||||
"tags": [
|
||||
"chevron",
|
||||
"expand"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "chevron-expand-outline",
|
||||
"tags": [
|
||||
"chevron",
|
||||
"expand",
|
||||
"outline"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "chevron-expand-sharp",
|
||||
"tags": [
|
||||
"chevron",
|
||||
"expand",
|
||||
"sharp"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "chevron-forward",
|
||||
"tags": [
|
||||
|
||||
@@ -86,49 +86,55 @@
|
||||
<ion-icon name="cellular" aria-label="Mobile data"></ion-icon>
|
||||
<ion-icon name="cellular" aria-hidden="true"></ion-icon>
|
||||
|
||||
<h1>RTL</h1>
|
||||
<div id="rtl-tests">
|
||||
<h1>RTL</h1>
|
||||
|
||||
<h2>Default: Non-arrows</h2>
|
||||
<ion-icon name="cut"></ion-icon>
|
||||
<ion-icon name="call"></ion-icon>
|
||||
<ion-icon name="checkbox"></ion-icon>
|
||||
<ion-icon name="brush"></ion-icon>
|
||||
<h2>Default: Non-arrows</h2>
|
||||
<ion-icon name="cut"></ion-icon>
|
||||
<ion-icon name="call"></ion-icon>
|
||||
<ion-icon name="checkbox"></ion-icon>
|
||||
<ion-icon name="brush"></ion-icon>
|
||||
|
||||
<h2>Flip: Non-arrows</h2>
|
||||
<ion-icon name="cut" flip-rtl></ion-icon>
|
||||
<ion-icon name="call" flip-rtl></ion-icon>
|
||||
<ion-icon name="checkbox" flip-rtl></ion-icon>
|
||||
<ion-icon name="brush" flip-rtl></ion-icon>
|
||||
<h2>Flip: Non-arrows</h2>
|
||||
<ion-icon name="cut" flip-rtl></ion-icon>
|
||||
<ion-icon name="call" flip-rtl></ion-icon>
|
||||
<ion-icon name="checkbox" flip-rtl></ion-icon>
|
||||
<ion-icon name="brush" flip-rtl></ion-icon>
|
||||
|
||||
<h2>Auto Flip: arrows</h2>
|
||||
<ion-icon name="arrow-up"></ion-icon>
|
||||
<ion-icon name="arrow-forward"></ion-icon>
|
||||
<ion-icon name="arrow-down"></ion-icon>
|
||||
<ion-icon name="arrow-back"></ion-icon>
|
||||
<h2>Auto Flip: arrows</h2>
|
||||
<ion-icon name="arrow-up"></ion-icon>
|
||||
<ion-icon name="arrow-forward"></ion-icon>
|
||||
<ion-icon name="arrow-down"></ion-icon>
|
||||
<ion-icon name="arrow-back"></ion-icon>
|
||||
|
||||
<h2>Un-flip: arrows</h2>
|
||||
<ion-icon name="arrow-up" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-forward" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-down" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-back" flip-rtl="false"></ion-icon>
|
||||
<h2>Un-flip: arrows</h2>
|
||||
<ion-icon name="arrow-up" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-forward" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-down" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="arrow-back" flip-rtl="false"></ion-icon>
|
||||
|
||||
<h2>Auto Flip: chevrons</h2>
|
||||
<ion-icon name="chevron-up"></ion-icon>
|
||||
<ion-icon name="chevron-forward"></ion-icon>
|
||||
<ion-icon name="chevron-down"></ion-icon>
|
||||
<ion-icon name="chevron-back"></ion-icon>
|
||||
<h2>Auto Flip: chevrons</h2>
|
||||
<div class="auto-flip-chevrons">
|
||||
<ion-icon name="chevron-up"></ion-icon>
|
||||
<ion-icon name="chevron-forward"></ion-icon>
|
||||
<ion-icon name="chevron-down"></ion-icon>
|
||||
<ion-icon name="chevron-back"></ion-icon>
|
||||
</div>
|
||||
|
||||
<h2>Un-flip: chevrons</h2>
|
||||
<ion-icon name="chevron-up" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-forward" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-down" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-back" flip-rtl="false"></ion-icon>
|
||||
<h2>Un-flip: chevrons</h2>
|
||||
<div class="un-flip-chevrons">
|
||||
<ion-icon name="chevron-up" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-forward" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-down" flip-rtl="false"></ion-icon>
|
||||
<ion-icon name="chevron-back" flip-rtl="false"></ion-icon>
|
||||
</div>
|
||||
|
||||
<h2>Auto Flip, RTL on components</h2>
|
||||
<ion-icon name="arrow-up" dir="rtl" flip-rtl></ion-icon>
|
||||
<ion-icon name="arrow-forward" dir="rtl" flip-rtl></ion-icon>
|
||||
<ion-icon name="arrow-down" dir="rtl" flip-rtl></ion-icon>
|
||||
<ion-icon name="arrow-back" dir="rtl" flip-rtl></ion-icon>
|
||||
<h2>Auto Flip, RTL on components</h2>
|
||||
<ion-icon name="arrow-up" dir="rtl" flip-rtl></ion-icon>
|
||||
<ion-icon name="arrow-forward" dir="rtl" flip-rtl></ion-icon>
|
||||
<ion-icon name="arrow-down" dir="rtl" flip-rtl></ion-icon>
|
||||
<ion-icon name="arrow-back" dir="rtl" flip-rtl></ion-icon>
|
||||
</div>
|
||||
|
||||
<h2>Sanitized (shouldn't show)</h2>
|
||||
<ion-icon src="./assets/sanitize.svg"></ion-icon>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M136 104L256 208L376 104" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/><path d="M136 408L256 304L376 408" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32"/></svg>
|
||||
|
After Width: | Height: | Size: 338 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><path d="M102.145 108.514L256 241.855l153.855-133.341-31.437-36.273L256 178.337 133.582 72.241l-31.437 36.273zm0 294.972L256 270.145l153.855 133.341-31.437 36.273L256 333.663 133.582 439.759l-31.437-36.273z"/></svg>
|
||||
|
After Width: | Height: | Size: 297 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M117.863 88.282c-8.681 10.017-7.598 25.174 2.419 33.855l120 104c9.02 7.818 22.416 7.818 31.436 0l120-104c10.017-8.681 11.1-23.838 2.419-33.855s-23.839-11.099-33.855-2.418L256 176.241 151.718 85.864c-10.016-8.681-25.174-7.598-33.855 2.418zm0 335.436c-8.681-10.017-7.598-25.174 2.419-33.855l120-104c9.02-7.818 22.416-7.818 31.436 0l120 104c10.017 8.681 11.1 23.838 2.419 33.855s-23.839 11.099-33.855 2.418L256 335.759l-104.282 90.377c-10.016 8.681-25.174 7.598-33.855-2.418z"/></svg>
|
||||
|
After Width: | Height: | Size: 552 B |
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M136 208L256 104L376 208" stroke="currentColor" fill="none" stroke-width="32" stroke-linecap="round" stroke-linejoin="round"/><path d="M136 304L256 408L376 304" stroke="currentColor" fill="none" stroke-width="32" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||
|
After Width: | Height: | Size: 339 B |
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M136 208L256 104L376 208" fill="none" stroke="currentColor" stroke-width="48" stroke-linecap="square"/><path d="M136 304L256 408L376 304" fill="none" stroke="currentColor" stroke-width="48" stroke-linecap="square"/></svg>
|
||||
|
After Width: | Height: | Size: 293 B |
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M136 208L256 104L376 208" fill="none" stroke="currentColor" stroke-width="48" stroke-linecap="round" stroke-linejoin="round"/><path d="M136 304L256 408L376 304" fill="none" stroke="currentColor" stroke-width="48" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||
|
After Width: | Height: | Size: 339 B |