FA.noFw - no-fiwed-width option
authorTomas Zeman <tzeman@volny.cz>
Tue, 15 Jan 2019 15:32:03 +0100
changeset 14 5e14799f7ea0
parent 13 5af9883f1111
child 15 7f43df518630
FA.noFw - no-fiwed-width option fix: li and fw options are exclusive
example/src/main/scala/example/Example.scala
shared/src/main/scala/fontawesome/generic/FA.scala
--- a/example/src/main/scala/example/Example.scala	Tue Jan 15 15:25:00 2019 +0100
+++ b/example/src/main/scala/example/Example.scala	Tue Jan 15 15:32:03 2019 +0100
@@ -28,6 +28,11 @@
       div(cls:="pure-u-1", faBook, "Library"),
       div(cls:="pure-u-1", faPencil, "Applications"),
       div(cls:="pure-u-1", faCog, "Settings"),
+      h2("No fixed width icons"),
+      div(cls:="pure-u-1",
+        faWifi.noFw, faWikipediaW.noFw, faWon.noFw, faWordpress.noFw,
+        faXing.noFw, faYahoo.noFw, faYelp.noFw, faYen.noFw,
+        faYoast.noFw, faYoutube.noFw),
       h2("List icons"),
       ul(cls:="fa-ul",
         li(faCheckSquare.li, "List icons"),
--- a/shared/src/main/scala/fontawesome/generic/FA.scala	Tue Jan 15 15:25:00 2019 +0100
+++ b/shared/src/main/scala/fontawesome/generic/FA.scala	Tue Jan 15 15:32:03 2019 +0100
@@ -55,7 +55,8 @@
 
   type Self = FA[Builder, Output, FragT]
 
-  def li: Self = copy(_li = true)
+  def li: Self = copy(_li = true, _fw = false)
+  def noFw: Self = copy(_fw = false)
 
   def border: Self = copy(_border = true)
   def pullLeft: Self = copy(_pull = Some(PullLeft))