-
Notifications
You must be signed in to change notification settings - Fork 0
feat(icons): add acf partial and basic styles for icons #2
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
base: main
Are you sure you want to change the base?
Conversation
|
nice |
| .c-icon { | ||
| &--up { | ||
| tranform: rotate(0); | ||
| } | ||
|
|
||
| &--right { | ||
| transform: rotate(45deg); | ||
| } | ||
|
|
||
| &--down { | ||
| transform: rotate(180deg); | ||
| } | ||
|
|
||
| &--left { | ||
| transform: rotate(270deg); | ||
| } | ||
| } |
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.
Do we need these classes or can we just use tailwind?
e.g. u-rotate-45
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.
We can, I'm just being verbose/OCD about naming 😅 I'll remove.
| protected function getIcons(): array | ||
| { | ||
| $filesystem = new Filesystem(); | ||
| $files = $filesystem->allFiles(get_template_directory() . '/resources/images/icons'); |
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.
Would it make sense to use a Bloom config, and set this in there?
I can foresee an easier time updating repositories in future as Bloom evolves if we have per-app configuration for this, rather than putting it in separate files.
We have a config directory already, is it possible to use that?
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.
@Jamiewarb Are you referring to the file path specifically? If so, yeah that makes sense 💪
This module adds an ACF partial which can be added to any ACF block. It displays a select list populated by all files in the
resources/images/iconsdirectory:or