scalatags icon indicating copy to clipboard operation
scalatags copied to clipboard

ScalaTags is a small XML/HTML construction library for Scala.

Results 41 scalatags issues
Sort by recently updated
recently updated
newest added

I'm using the latest version of scalatags on Maven (0.8.6). If I use the latest version of scalajs-dom (1.0.0) or even 0.9.8 I get a compile error: ``` [error] /Users/bwbecker/oat/src/oat3/modules/browser/src/main/scala/oat/browser/views/components/filteredTable/FilteredUsersTable.scala:123:7:...

Example: ~~~Scala import scalatags.JsDom.all._ import scalatags.JsDom.svgAttrs._ import scalatags.JsDom.svgTags._ text( y := 20, children.toList.map(ChildView.render) ) ~~~ Error: ~~~ [error] found : List[scalatags.JsDom.TypedTag[org.scalajs.dom.svg.TSpan]] [error] (which expands to) List[scalatags.JsDom.TypedTag[org.scalajs.dom.raw.SVGTSpanElement]] [error] required: scalatags.JsDom.Modifier [error]...

I noticed that the current `*.js.map` file references https://raw.githubusercontent.com/lihaoyi/scalatags/v0.5.5/js/src/main/scala/scalatags/JsDom.scala , which does not exsist. A more delicate approach is generating the `mapSourceURI` option from git metadata instead of hard-coding. This...

This simple change creates a `SVGOnlyAttrs` trait that contains all the attributes that are unique to SVG (in the sense of not being members of the `Attrs` trait). The existing...

I think this implements pretty-printing for the text back-end. It should be almost free for non-pretty-print renderings.

if you use .toString to render the tags (instead of .render) StringFrag doesn't behave as expected. I.e. StringFrag("hello world").toString shouldBe "hello world" but actually StringFrag("hello world").toString is "StringFrag(hello world)"

I'm wondering if it's possible to use !important from css. If not, please add it.

[ScalaFiddle testing grouping SVG frags and modifiers](https://scalafiddle.io/sf/RuHkVSF/0) fails to compile with: ``` ScalaFiddle.scala:45: error: type mismatch; found : collection.this.Seq[.this.scalatags.JsDom.implicits.Modifier] (which expands to) collection.this.Seq[generic.this.Modifier[raw.this.Element]] required: scalatags.this.JsDom.Modifier (which expands to) generic.this.Modifier[raw.this.Element] mods...

The CSS property description can be found here : https://developer.mozilla.org/fr/docs/Web/CSS/text-justify