Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use copy to clipboard icon from Font Awesome Free set #1309

Merged
merged 4 commits into from
Apr 27, 2022

Conversation

osma
Copy link
Member

@osma osma commented Apr 27, 2022

Reasons for creating this PR

In the Bootstrap 5 upgrade (#1182), we switched away from the copy to clipboard icon from Glyphicons (which had become non-free). Instead, another icon from Google Material Icons was used.

We looked at other icon sets and made a decision to use Font Awesome Free icons wherever possible. So this PR changes the copy to clipboard to the copy icon from Font Awesome. The SVG file has been slightly tweaked by adding the fill="#00748f" attribute to the top level <svg> element - this way it has the right color instead of being black.

This is how it looks in action:

image

EDIT: Updated image to match layout adjustments.

Link to relevant issue(s), if any

Description of the changes in this PR

  • switch the clipboard.svg icon to one derived from the Font Awesome set
  • adjust icon alignment in CSS

Known problems or uncertainties in this PR

n/a

Checklist

  • phpUnit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if not, explain why below)
  • The PR doesn't introduce unintended code changes (e.g. empty lines or useless reindentation)

@osma osma added this to the 2.15 milestone Apr 27, 2022
@osma osma self-assigned this Apr 27, 2022
@osma osma changed the title Clipboard icon fontawesome free Use copy to clipboard icon from Font Awesome Free set Apr 27, 2022
@codecov
Copy link

codecov bot commented Apr 27, 2022

Codecov Report

Merging #1309 (f0d97a4) into master (1895bdf) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #1309   +/-   ##
=========================================
  Coverage     69.44%   69.44%           
  Complexity     1656     1656           
=========================================
  Files            32       32           
  Lines          4068     4068           
=========================================
  Hits           2825     2825           
  Misses         1243     1243           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1895bdf...f0d97a4. Read the comment docs.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@osma osma merged commit af72a41 into master Apr 27, 2022
@osma osma deleted the clipboard-icon-fontawesome-free branch April 27, 2022 12:59
@osma osma mentioned this pull request May 3, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants