Bug : css style for id's # not showing in Hypes IDE

Oh My... #∞¶••

I normally use class names in in any css but I had some css using IDs in the head file within the IDE.

My expectation was that this styling would show in the IDE but nope.
Tried it with class names and yes show in IDE.

Thought I was going nuts!!

Finally did a preview with the id css in place and it works as expected.

So seems when using ids in the head css no longer displays in the IDE ?

<style>

#firstname {
  background-color: yellow!important;
  color: red!important;
}


.firstname {
  background-color: yellow!important;
  color: red!important;
}
 
 
 
 	</style>

IDE

Preview

GRRRR.hype.zip (26.8 KB)

The IDE had been using plain numbers then an o was added as only numbers is invalid.

Sorry what do you mean ?

anyway ... it's unexpected app-behavior ... :slight_smile:

Ah, some how missed that conversation about that if the was one.?
Thanks

..

The editor environment currently does not set the Unique Element ID on elements. This is mainly since the ID is needed internally for Hype's Scene Editor, though we could probably maintain a mapping of custom IDs just as well for this to work. I've added a +1 on the feature request.

1 Like