Skip to content

Reduced size of svg icon - #102

Open
jasomdotnet wants to merge 1 commit into
Leaflet:gh-pagesfrom
jasomdotnet:reduced-size-of-svg-icon
Open

Reduced size of svg icon#102
jasomdotnet wants to merge 1 commit into
Leaflet:gh-pagesfrom
jasomdotnet:reduced-size-of-svg-icon

Conversation

@jasomdotnet

@jasomdotnet jasomdotnet commented Nov 23, 2019

Copy link
Copy Markdown

5KB for such small icon is insane :D I have reduced size using "clone elements" method. Now gzipped icon is around 0.7KB.

@runette runette mentioned this pull request Dec 31, 2019
hswong3i added a commit to drustack/Leaflet-Leaflet.fullscreen that referenced this pull request Nov 26, 2021
Existing implementation handle icon with PNG, with manual positioning
with CSS background image.

This PR rework icons with Font Awesome SVG:

  - Locally venor Font Awesome v5.15.4 `expand-solid.svg` and
    `compress-solid.svg`
  - Rework styling with SCSS
  - Fix accessibility (see Leaflet#110)
  - Test with Leaflet v1.7.1
  - Update demo with above changes

Fix Leaflet#98
Fix Leaflet#102
Fix Leaflet#103
Fix Leaflet#110
Fix Leaflet#114

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
hswong3i added a commit to drustack/Leaflet-Leaflet.fullscreen that referenced this pull request Nov 30, 2021
Existing implementation handle icon with PNG, with manual positioning
with CSS background image.

This PR rework icons with Font Awesome SVG:

  - Locally venor Font Awesome v5.15.4 `expand-solid.svg` and
    `compress-solid.svg`
  - Rework styling with SCSS
  - Fix accessibility (see Leaflet#110)
  - Test with Leaflet v1.7.1
  - Update demo with above changes

Fix Leaflet#98
Fix Leaflet#102
Fix Leaflet#103
Fix Leaflet#110
Fix Leaflet#114

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
runette pushed a commit to runette/Leaflet.fullscreen that referenced this pull request May 13, 2022
Existing implementation handle icon with PNG, with manual positioning
with CSS background image.

This PR rework icons with Font Awesome SVG:

  - Locally venor Font Awesome v5.15.4 `expand-solid.svg` and
    `compress-solid.svg`
  - Rework styling with SCSS
  - Fix accessibility (see Leaflet#110)
  - Test with Leaflet v1.7.1
  - Update demo with above changes

Fix Leaflet#98
Fix Leaflet#102
Fix Leaflet#103
Fix Leaflet#110
Fix Leaflet#114

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant