Coder Social home page Coder Social logo

Code Review of Icon Menu about govpress HOT 11 CLOSED

govfresh avatar govfresh commented on June 27, 2024
Code Review of Icon Menu

from govpress.

Comments (11)

devinsays avatar devinsays commented on June 27, 2024

The css classes for item count aren't working correct.

from govpress.

devinsays avatar devinsays commented on June 27, 2024

I simplified this by using filters rather than a walker:
https://github.com/govfresh/govpress/blob/master/inc/icon-menu-extras.php

Still not completely happy with it as someone might intentionally want to use icon-* on another menu.

Perhaps the best solution is to just add an additional rule to all the icon css:

.menu-icon .icon-* a:before { content: '\icon' }

But it's also annoying to add all that css.

from govpress.

lukefretwell avatar lukefretwell commented on June 27, 2024

Looks like you're using an older version of FA. Do we want to use the newer one?

http://fontawesome.io/

from govpress.

lukefretwell avatar lukefretwell commented on June 27, 2024

Added icon CSS into menu, and it's breaking the spacing, causing each to block.

See here: http://civicmeet.govfresh.com/

from govpress.

devinsays avatar devinsays commented on June 27, 2024

I'm using version 4.0.3 of FontAwesome- which looks like the latest. Is there something that makes you think it's not?

from govpress.

lukefretwell avatar lukefretwell commented on June 27, 2024

I tried using the newsest FA code is the CSS and it didn't work so I went
with the old form and that did.

On Saturday, February 15, 2014, Devin Price wrote:

I'm using version 4.0.3 of FontAwesome- which looks like the latest. Is
there something that makes you think it's not?

Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-35159807
.

Luke Fretwell
415.722.8678
[email protected]
http://lukefretwell.com

from govpress.

devinsays avatar devinsays commented on June 27, 2024

Could you give me an example of the new form and old form?

I did alter the CSS slightly. I'm using "icon" rather than "fa".
https://github.com/govfresh/govpress/blob/master/fonts/font-awesome/font-awesome.css

from govpress.

lukefretwell avatar lukefretwell commented on June 27, 2024

I see. I had to use 'icon-rocket' which is similar to the markup from 3.2.1 to get it to work so assumed you were pulling from those.

from govpress.

devinsays avatar devinsays commented on June 27, 2024

I'm leaning towards changing the markup back to "fa" from "icon". That could help prevent conflicts with other icon libraries. Also allows us to link straight to the font-awesome page so folks can find the class they need. This will cause issues on some of the staging sites- but should be done before release if it is going to happen. Thoughts @lukefretwell?

from govpress.

lukefretwell avatar lukefretwell commented on June 27, 2024

+1

On Saturday, February 22, 2014, Devin Price wrote:

I'm leaning towards changing the markup back to "fa" from "icon". That
could help prevent conflicts with other icon libraries. Also allows us to
link straight to the font-awesome page so folks can find the class they
need. This will cause issues on some of the staging sites- but should be
done before release if it is going to happen. Thoughts @lukefretwellhttps://github.com/lukefretwell
?

Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-35819698
.

Luke Fretwell
415.722.8678
[email protected]
http://lukefretwell.com

from govpress.

devinsays avatar devinsays commented on June 27, 2024

Icon prefix has been changed back to "fa". You'll need to update any icon menus you've already set.

from govpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.