Comments (3)
You're looking to include a small Feather-icon inside some buttons?
This could be a javascript solution that appends a span
tag to all buttons with an "arrow" class, rather than going back in and attempting to shim the code on ourselves.
from scripted.
Yeah I just wanted to make a note of it because I wasn't sure how to add some "html safe" content in tags for the buttons since they were being populated by wordpress…does that make sense?
from scripted.
Any .php
file in this project is going to output raw HTML ultimately, so you're welcome to add a span
element wherever you like, and it'll appear as you'd expect. It's just a matter of maintenance, i.e:
Option 1
Use a class or data-attribute to find and append
span
tag with JavaScript
- "DRY" programming: we only write the HTML once, and it gets recycled every time a button needs an arrow
- Code in the PHP/HTML could be as minimal as
<button class="blue arrow">Button Text</button>
Option 2
Add
span
inline
- Additional maintenance on each button requiring an arrow:
<button class="blue">Button Text<span class="icon-arrow-right"></span></button>
from scripted.
Related Issues (20)
- Statistic tiles
- Recognition / Accolades open in new window
- Validate Names more carefully HOT 1
- Recognition not in mobile nav
- No results message on blog
- Center Main Nav Vertically
- FAQ Item "More Info" link
- favicon and social sharing stuff
- Adding new sponsors HOT 2
- spacing on volunteer page HOT 2
- Errors on event page HOT 3
- Error on Presskit page HOT 1
- Dropdown arrow position for Select Menus
- Add logo to footer
- Error page link HOT 1
- Switch "Hire an Intern" page template
- Dropdown menus close immediately in IE11 HOT 1
- Blog mobile styles (not full width) HOT 1
- Eliminate "Press" menu from Kits and Recognition pages
- Padding of stat blocks is pretty crazy at mobile size
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scripted.