-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Proof of concept #5593 - inline SVG icon for icon-contacts #5682
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,7 +107,9 @@ class="app-icon"/> | |
| <button class="icon-close-white" type="reset"></button> | ||
| </form> | ||
| <div id="contactsmenu"> | ||
| <div class="icon-contacts menutoggle"></div> | ||
| <div class="icon-contacts icon-white menutoggle"> | ||
| <?php echo file_get_contents('core/img/places/contacts.svg'); ?> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @LukasReschke Security problem? Yes or no?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The include here isn't really optimal, it's not a security issue per se at the moment but depends on the include orders etc. I'd prefer a proper absolute inclusion:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK @LukasReschke - I'll update this when I move on to inlining other SVG icons |
||
| </div> | ||
| <div class="menu"></div> | ||
| </div> | ||
| <div id="settings"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -181,14 +181,14 @@ | |
| _setFieldScopeIcon: function(field, scope) { | ||
| var $icon = this.$('#' + field + 'form > h2 > span'); | ||
| $icon.removeClass('icon-password'); | ||
| $icon.removeClass('icon-contacts-dark'); | ||
| $icon.removeClass('icon-contacts'); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| $icon.removeClass('icon-link'); | ||
| switch (scope) { | ||
| case 'private': | ||
| $icon.addClass('icon-password'); | ||
| break; | ||
| case 'contacts': | ||
| $icon.addClass('icon-contacts-dark'); | ||
| $icon.addClass('icon-contacts'); | ||
| break; | ||
| case 'public': | ||
| $icon.addClass('icon-link'); | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here, css is public api, we can not simply drop them