-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[4.0] Webauth inline SVG button with fill #31190
Conversation
This comment was marked as abuse.
This comment was marked as abuse.
thats kinda what I thought but I don't think they've gotten that far. It's (btn-secondary) is gray on white in cassiopeia right now. |
Please # 31166 => #31166 for linking |
Maybe use a different image? |
@PhilETaylor is right - |
plugin only supports a single image. |
done |
Just an FYI, you can inherit the button text colour: https://jsfiddle.net/Ln9xrzfo |
Images can be overridden by templates. |
only works with inline svg 👎 |
Why not use inline SVG then? |
tbh, cause I don't know how I would do so in the plugin |
Try this:
[EDIT] Oops, I thought, you would use a white button at the frontend. |
To use inline svg in that case, see targetting the svg with css let's define the color using a variable for the vote plugin is used for example:
For Cassiopea, can be i.e.
3rd party templates would just have to modify their css to fit their needs. |
NOW WORKS AS SVG INLINE! YAY ME! |
…ebauth-frontend
…ebauth-frontend
plugins/system/webauthn/src/PluginTraits/AdditionalLoginButtons.php
Outdated
Show resolved
Hide resolved
restarted drone |
@N6REJ I mean doing this in _icon.scss
|
I have tested this item ✅ successfully on 8ef4846 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31190. |
Tks. |
@ infograf768 You've made a huge mistake merging this. The API is incomplete and extremely naive (talking about |
@dgrammatiko Do you think it can be fixed/improved before the next beta, and if so, could you help with that? |
I'll try to make a PR although pretty busy atm and I have already promised to provide some help in another sub-project from @bembelimen |
This can be easily reverted if necessary. |
@dgrammatiko nice... so I don't do it the way that you abandoned therefore my code is crap. Then you further admit "I'm pretty busy". So your just ragging on me without anything useful to contribute! How beneficial. You had 26 days to make it better! |
@N6REJ you know what I'll take it back. Your API is perfect, as the rest of the Joomla. Bye.- |
@dgrammatiko I seriously doubt it's perfect, It's functional. Your a good coder but for w/e reason you seem to have made it your lifes mission to trash everything I do WITHOUT giving feedback that is constructive and useful. |
@N6REJ Check your Glip. You've asked me for help and I provided it but you've completely ignored it. I'm not trashing you without reason: you've started this icons improvements without a plan and you just keep doing small things ignoring B/C or sustainability. If you had a concrete plan that could move the project forward I will back it but that's not what's happening.(how many PR's already for this one icon?) |
@dgrammatiko I did as you asked and checked your work that you said wasn't the right way, and didn't understand the discussion. I don't TRY to ignore b/c or anything else. I may not think of it, or realize it & in the case of fa I was under the impression that with a major version change we were allowed to break b/c. I was told no, and why and that started a process to make things HOPEFULLY even better. @hans2103 & myself formed a team specifically for icons and together came up with the recent changes to iconclass that now ensure no 3rd party icons are broken. Was a huge task and ALOT of credit goes to hans. |
In this way, everyone contributes their own. Only together we are strong. |
This reverts commit 31d2bdf.
Pull Request for Issue #31166
Summary of Changes
changed webauthn button colors to match admin colors
Testing Instructions
go to login in frontend & backend using https://
note webauthn icon is missing/hidden.
apply pr
run npm ci
now both logo and text are visible
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
html will look like this.
![image](https://user-images.githubusercontent.com/1850089/97709502-6fe3b300-1a88-11eb-986c-0f8c2f5a6c65.png)
Documentation Changes Required
show as demo how to use svg inline via $Button using this as example.
creates
HTMLHelper::_('icons.svg', $file, $relative = true)
class. This creates an inline svg class using either relative to /media or given path/image.i.e.
'svg' => HTMLHelper::_('icons.svg', "plg_system_webauthn/webauthn-black.svg", true),
will get the image "webauthn-black.svg" from
/media/plg_system_webauthn/images/webauthn-black.svg
then to output it you simply need.
sample output is
see /plugins/system/webauthn/scr/PluginTraits/AdditionalLoginButtons.php for full example