Troubleshooting creating a Dropdown List from an SVG: using hover to reveal the menuMake the cursor a hand when a user hovers over a list itemHow to make Twitter Bootstrap menu dropdown on hover rather than clickjQuery Get Selected Option From DropdownCreating a Radial Menu in CSSBootstrap Dropdown with HoverHow to remove the default arrow icon from a dropdown list (select element)?Bootstrap dropdown sub menu missingChange the class of a different button when hovering a different elementCannot display HTML stringHow to set timeout for the dropdown menu in CSS

Was this scene in S8E06 added because of fan reactions to S8E04?

Are there any German nonsense poems (Jabberwocky)?

Is it safe to redirect stdout and stderr to the same file without file descriptor copies?

How can I get a refund from a seller who only accepts Zelle?

ifconfig shows UP while ip link shows DOWN

What did Brienne write about Jaime?

resolution bandwidth

Flatten not working

Split into three!

Alexandrov's generalization of Cauchy's rigidity theorem

Python script to extract text from PDF with images

Moons and messages

Did significant numbers of Japanese officers escape prosecution during the Tokyo Trials?

How do you earn the reader's trust?

How to teach an undergraduate course without having taken that course formally before?

How to create a `range`-like iterable object of floats?

What is to the west of Westeros?

Is keeping the forking link on a true fork necessary (Github/GPL)?

Complications of displaced core material?

Unary Enumeration

How does the Earth's center produce heat?

Why does the painters tape have to be blue?

Who were the members of the jury in the Game of Thrones finale?

Knight's Tour on a 7x7 Board starting from D5



Troubleshooting creating a Dropdown List from an SVG: using hover to reveal the menu


Make the cursor a hand when a user hovers over a list itemHow to make Twitter Bootstrap menu dropdown on hover rather than clickjQuery Get Selected Option From DropdownCreating a Radial Menu in CSSBootstrap Dropdown with HoverHow to remove the default arrow icon from a dropdown list (select element)?Bootstrap dropdown sub menu missingChange the class of a different button when hovering a different elementCannot display HTML stringHow to set timeout for the dropdown menu in CSS






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Trying to use the .class:hover > .otherClass property in CSS to change the opacity of the otherClass from 0 to 1.



In this example .class is a bicycle SVG I crudely editted (the svg path code is a speghetti monster, I'm sorry-not sorry because it works). The .otherClass is a property linked to a div to reveal three nexted li's within ul's. (Don't really care about how they look at the moment just want to target the group correctly within css).



The idea is when I hover over the bicycle SVG the dropdown menu will be revealed--crudely. Code below:



I've tried for the last two hours different methods of targeting the nested .otherClass to no avail.



HTML:



<div ="nav">

<svg class = "bike" viewBox="0 0 625 355" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/"
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
<g id="Bike"><path d="M108.706,153.568c51.739,0.588 93.266,43.071 92.678,94.81c-0.589,51.739 -43.072,93.266 -94.811,92.677c-51.738,-0.588 -93.266,-43.071 -92.677,-94.81c0.588,-51.739 43.071,-93.266 94.81,-92.677Z"
style="fill:none;stroke:#000;stroke-width:12.5px;"/><path d="M107.758,236.896c5.749,0.065 10.363,4.785 10.298,10.534c-0.066,5.749 -4.786,10.363 -10.535,10.298c-5.748,-0.066 -10.363,-4.786 -10.297,-10.535c0.065,-5.749 4.785,-10.363 10.534,-10.297Z"/>
<path d="M517.132,147.796c51.738,0.589 93.266,43.072 92.677,94.81c-0.588,51.739 -43.072,93.267 -94.81,92.678c-51.739,-0.588 -93.266,-43.072 -92.678,-94.81c0.589,-51.739 43.072,-93.266 94.811,-92.678Z"
style="fill:none;stroke:#000;stroke-width:12.5px;"/><path d="M516.184,231.124c5.748,0.066 10.363,4.786 10.297,10.535c-0.065,5.748 -4.786,10.363 -10.534,10.297c-5.749,-0.065 -10.363,-4.786 -10.298,-10.534c0.066,-5.749 4.786,-10.363 10.535,-10.298Z"/>
<path d="this path is absolutely massive, not including it"/>
</g>

<div class="drop">
<ul>
<li>
<ul class="dropdown">
<li><a href="#">Sub-1</a></li>
<li><a href="#">Sub-2</a></li>
<li><a href="#">Sub-3</a></li>
</ul>
</li>
</ul>
</div>

</svg>

</div>


CSS:



.bike 
top: 5%;
left: 5%;
z-index: 5;
float: center;
width: 15%;
position: absolute;


.bike:hover, .bike:hover > .drop
fill: blue;
opacity:1;



.drop
opacity:0;


ul
color: green;
width: 100px;
height: 100px;


li
color: blue;
width: 100px;
height: 50px;



When you hover over the SVG, the dropdown mean should change it's opacity from 0 to 1.










share|improve this question




























    0















    Trying to use the .class:hover > .otherClass property in CSS to change the opacity of the otherClass from 0 to 1.



    In this example .class is a bicycle SVG I crudely editted (the svg path code is a speghetti monster, I'm sorry-not sorry because it works). The .otherClass is a property linked to a div to reveal three nexted li's within ul's. (Don't really care about how they look at the moment just want to target the group correctly within css).



    The idea is when I hover over the bicycle SVG the dropdown menu will be revealed--crudely. Code below:



    I've tried for the last two hours different methods of targeting the nested .otherClass to no avail.



    HTML:



    <div ="nav">

    <svg class = "bike" viewBox="0 0 625 355" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/"
    style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
    <g id="Bike"><path d="M108.706,153.568c51.739,0.588 93.266,43.071 92.678,94.81c-0.589,51.739 -43.072,93.266 -94.811,92.677c-51.738,-0.588 -93.266,-43.071 -92.677,-94.81c0.588,-51.739 43.071,-93.266 94.81,-92.677Z"
    style="fill:none;stroke:#000;stroke-width:12.5px;"/><path d="M107.758,236.896c5.749,0.065 10.363,4.785 10.298,10.534c-0.066,5.749 -4.786,10.363 -10.535,10.298c-5.748,-0.066 -10.363,-4.786 -10.297,-10.535c0.065,-5.749 4.785,-10.363 10.534,-10.297Z"/>
    <path d="M517.132,147.796c51.738,0.589 93.266,43.072 92.677,94.81c-0.588,51.739 -43.072,93.267 -94.81,92.678c-51.739,-0.588 -93.266,-43.072 -92.678,-94.81c0.589,-51.739 43.072,-93.266 94.811,-92.678Z"
    style="fill:none;stroke:#000;stroke-width:12.5px;"/><path d="M516.184,231.124c5.748,0.066 10.363,4.786 10.297,10.535c-0.065,5.748 -4.786,10.363 -10.534,10.297c-5.749,-0.065 -10.363,-4.786 -10.298,-10.534c0.066,-5.749 4.786,-10.363 10.535,-10.298Z"/>
    <path d="this path is absolutely massive, not including it"/>
    </g>

    <div class="drop">
    <ul>
    <li>
    <ul class="dropdown">
    <li><a href="#">Sub-1</a></li>
    <li><a href="#">Sub-2</a></li>
    <li><a href="#">Sub-3</a></li>
    </ul>
    </li>
    </ul>
    </div>

    </svg>

    </div>


    CSS:



    .bike 
    top: 5%;
    left: 5%;
    z-index: 5;
    float: center;
    width: 15%;
    position: absolute;


    .bike:hover, .bike:hover > .drop
    fill: blue;
    opacity:1;



    .drop
    opacity:0;


    ul
    color: green;
    width: 100px;
    height: 100px;


    li
    color: blue;
    width: 100px;
    height: 50px;



    When you hover over the SVG, the dropdown mean should change it's opacity from 0 to 1.










    share|improve this question
























      0












      0








      0








      Trying to use the .class:hover > .otherClass property in CSS to change the opacity of the otherClass from 0 to 1.



      In this example .class is a bicycle SVG I crudely editted (the svg path code is a speghetti monster, I'm sorry-not sorry because it works). The .otherClass is a property linked to a div to reveal three nexted li's within ul's. (Don't really care about how they look at the moment just want to target the group correctly within css).



      The idea is when I hover over the bicycle SVG the dropdown menu will be revealed--crudely. Code below:



      I've tried for the last two hours different methods of targeting the nested .otherClass to no avail.



      HTML:



      <div ="nav">

      <svg class = "bike" viewBox="0 0 625 355" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/"
      style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
      <g id="Bike"><path d="M108.706,153.568c51.739,0.588 93.266,43.071 92.678,94.81c-0.589,51.739 -43.072,93.266 -94.811,92.677c-51.738,-0.588 -93.266,-43.071 -92.677,-94.81c0.588,-51.739 43.071,-93.266 94.81,-92.677Z"
      style="fill:none;stroke:#000;stroke-width:12.5px;"/><path d="M107.758,236.896c5.749,0.065 10.363,4.785 10.298,10.534c-0.066,5.749 -4.786,10.363 -10.535,10.298c-5.748,-0.066 -10.363,-4.786 -10.297,-10.535c0.065,-5.749 4.785,-10.363 10.534,-10.297Z"/>
      <path d="M517.132,147.796c51.738,0.589 93.266,43.072 92.677,94.81c-0.588,51.739 -43.072,93.267 -94.81,92.678c-51.739,-0.588 -93.266,-43.072 -92.678,-94.81c0.589,-51.739 43.072,-93.266 94.811,-92.678Z"
      style="fill:none;stroke:#000;stroke-width:12.5px;"/><path d="M516.184,231.124c5.748,0.066 10.363,4.786 10.297,10.535c-0.065,5.748 -4.786,10.363 -10.534,10.297c-5.749,-0.065 -10.363,-4.786 -10.298,-10.534c0.066,-5.749 4.786,-10.363 10.535,-10.298Z"/>
      <path d="this path is absolutely massive, not including it"/>
      </g>

      <div class="drop">
      <ul>
      <li>
      <ul class="dropdown">
      <li><a href="#">Sub-1</a></li>
      <li><a href="#">Sub-2</a></li>
      <li><a href="#">Sub-3</a></li>
      </ul>
      </li>
      </ul>
      </div>

      </svg>

      </div>


      CSS:



      .bike 
      top: 5%;
      left: 5%;
      z-index: 5;
      float: center;
      width: 15%;
      position: absolute;


      .bike:hover, .bike:hover > .drop
      fill: blue;
      opacity:1;



      .drop
      opacity:0;


      ul
      color: green;
      width: 100px;
      height: 100px;


      li
      color: blue;
      width: 100px;
      height: 50px;



      When you hover over the SVG, the dropdown mean should change it's opacity from 0 to 1.










      share|improve this question














      Trying to use the .class:hover > .otherClass property in CSS to change the opacity of the otherClass from 0 to 1.



      In this example .class is a bicycle SVG I crudely editted (the svg path code is a speghetti monster, I'm sorry-not sorry because it works). The .otherClass is a property linked to a div to reveal three nexted li's within ul's. (Don't really care about how they look at the moment just want to target the group correctly within css).



      The idea is when I hover over the bicycle SVG the dropdown menu will be revealed--crudely. Code below:



      I've tried for the last two hours different methods of targeting the nested .otherClass to no avail.



      HTML:



      <div ="nav">

      <svg class = "bike" viewBox="0 0 625 355" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/"
      style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
      <g id="Bike"><path d="M108.706,153.568c51.739,0.588 93.266,43.071 92.678,94.81c-0.589,51.739 -43.072,93.266 -94.811,92.677c-51.738,-0.588 -93.266,-43.071 -92.677,-94.81c0.588,-51.739 43.071,-93.266 94.81,-92.677Z"
      style="fill:none;stroke:#000;stroke-width:12.5px;"/><path d="M107.758,236.896c5.749,0.065 10.363,4.785 10.298,10.534c-0.066,5.749 -4.786,10.363 -10.535,10.298c-5.748,-0.066 -10.363,-4.786 -10.297,-10.535c0.065,-5.749 4.785,-10.363 10.534,-10.297Z"/>
      <path d="M517.132,147.796c51.738,0.589 93.266,43.072 92.677,94.81c-0.588,51.739 -43.072,93.267 -94.81,92.678c-51.739,-0.588 -93.266,-43.072 -92.678,-94.81c0.589,-51.739 43.072,-93.266 94.811,-92.678Z"
      style="fill:none;stroke:#000;stroke-width:12.5px;"/><path d="M516.184,231.124c5.748,0.066 10.363,4.786 10.297,10.535c-0.065,5.748 -4.786,10.363 -10.534,10.297c-5.749,-0.065 -10.363,-4.786 -10.298,-10.534c0.066,-5.749 4.786,-10.363 10.535,-10.298Z"/>
      <path d="this path is absolutely massive, not including it"/>
      </g>

      <div class="drop">
      <ul>
      <li>
      <ul class="dropdown">
      <li><a href="#">Sub-1</a></li>
      <li><a href="#">Sub-2</a></li>
      <li><a href="#">Sub-3</a></li>
      </ul>
      </li>
      </ul>
      </div>

      </svg>

      </div>


      CSS:



      .bike 
      top: 5%;
      left: 5%;
      z-index: 5;
      float: center;
      width: 15%;
      position: absolute;


      .bike:hover, .bike:hover > .drop
      fill: blue;
      opacity:1;



      .drop
      opacity:0;


      ul
      color: green;
      width: 100px;
      height: 100px;


      li
      color: blue;
      width: 100px;
      height: 50px;



      When you hover over the SVG, the dropdown mean should change it's opacity from 0 to 1.







      html css






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 23 at 21:51









      BamuBamu

      1




      1






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Part of the problem is that you've got a malformed SVG. You can't have HTML code inside of an SVG without marking it as a foreign object... This is because SVG is an XML Namespace just like HTML. (Named XML nodes are interpreted a specific way).



          Here's documentation for SVG foreignObject.



          However, I would avoid that by simply moving your .drop div OUTSIDE the SVG tag. Then use the "next sibling" selector instead of the "direct child".



          .bike:hover 
          fill: blue;

          .bike:hover + .drop
          background-color: blue;
          opacity:1;



          Also fill:color isn't valid on HTML entities, use background-color instead. This may be causing your browser to ignore the CSS after the error.






          share|improve this answer























          • Next sibling selector corrected the mistake. Sorry about the SVG coce, Affinity Designer doesn't have a good output path so I converted the SVG code-path with a free online tool. I'm iterating this concept via scratchpad.io, but I'll take your advice and cut out the html portion next.

            – Bamu
            Mar 24 at 17:37











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55318735%2ftroubleshooting-creating-a-dropdown-list-from-an-svg-using-hover-to-reveal-the%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Part of the problem is that you've got a malformed SVG. You can't have HTML code inside of an SVG without marking it as a foreign object... This is because SVG is an XML Namespace just like HTML. (Named XML nodes are interpreted a specific way).



          Here's documentation for SVG foreignObject.



          However, I would avoid that by simply moving your .drop div OUTSIDE the SVG tag. Then use the "next sibling" selector instead of the "direct child".



          .bike:hover 
          fill: blue;

          .bike:hover + .drop
          background-color: blue;
          opacity:1;



          Also fill:color isn't valid on HTML entities, use background-color instead. This may be causing your browser to ignore the CSS after the error.






          share|improve this answer























          • Next sibling selector corrected the mistake. Sorry about the SVG coce, Affinity Designer doesn't have a good output path so I converted the SVG code-path with a free online tool. I'm iterating this concept via scratchpad.io, but I'll take your advice and cut out the html portion next.

            – Bamu
            Mar 24 at 17:37















          0














          Part of the problem is that you've got a malformed SVG. You can't have HTML code inside of an SVG without marking it as a foreign object... This is because SVG is an XML Namespace just like HTML. (Named XML nodes are interpreted a specific way).



          Here's documentation for SVG foreignObject.



          However, I would avoid that by simply moving your .drop div OUTSIDE the SVG tag. Then use the "next sibling" selector instead of the "direct child".



          .bike:hover 
          fill: blue;

          .bike:hover + .drop
          background-color: blue;
          opacity:1;



          Also fill:color isn't valid on HTML entities, use background-color instead. This may be causing your browser to ignore the CSS after the error.






          share|improve this answer























          • Next sibling selector corrected the mistake. Sorry about the SVG coce, Affinity Designer doesn't have a good output path so I converted the SVG code-path with a free online tool. I'm iterating this concept via scratchpad.io, but I'll take your advice and cut out the html portion next.

            – Bamu
            Mar 24 at 17:37













          0












          0








          0







          Part of the problem is that you've got a malformed SVG. You can't have HTML code inside of an SVG without marking it as a foreign object... This is because SVG is an XML Namespace just like HTML. (Named XML nodes are interpreted a specific way).



          Here's documentation for SVG foreignObject.



          However, I would avoid that by simply moving your .drop div OUTSIDE the SVG tag. Then use the "next sibling" selector instead of the "direct child".



          .bike:hover 
          fill: blue;

          .bike:hover + .drop
          background-color: blue;
          opacity:1;



          Also fill:color isn't valid on HTML entities, use background-color instead. This may be causing your browser to ignore the CSS after the error.






          share|improve this answer













          Part of the problem is that you've got a malformed SVG. You can't have HTML code inside of an SVG without marking it as a foreign object... This is because SVG is an XML Namespace just like HTML. (Named XML nodes are interpreted a specific way).



          Here's documentation for SVG foreignObject.



          However, I would avoid that by simply moving your .drop div OUTSIDE the SVG tag. Then use the "next sibling" selector instead of the "direct child".



          .bike:hover 
          fill: blue;

          .bike:hover + .drop
          background-color: blue;
          opacity:1;



          Also fill:color isn't valid on HTML entities, use background-color instead. This may be causing your browser to ignore the CSS after the error.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 24 at 2:24









          Bryce HowitsonBryce Howitson

          1,964717




          1,964717












          • Next sibling selector corrected the mistake. Sorry about the SVG coce, Affinity Designer doesn't have a good output path so I converted the SVG code-path with a free online tool. I'm iterating this concept via scratchpad.io, but I'll take your advice and cut out the html portion next.

            – Bamu
            Mar 24 at 17:37

















          • Next sibling selector corrected the mistake. Sorry about the SVG coce, Affinity Designer doesn't have a good output path so I converted the SVG code-path with a free online tool. I'm iterating this concept via scratchpad.io, but I'll take your advice and cut out the html portion next.

            – Bamu
            Mar 24 at 17:37
















          Next sibling selector corrected the mistake. Sorry about the SVG coce, Affinity Designer doesn't have a good output path so I converted the SVG code-path with a free online tool. I'm iterating this concept via scratchpad.io, but I'll take your advice and cut out the html portion next.

          – Bamu
          Mar 24 at 17:37





          Next sibling selector corrected the mistake. Sorry about the SVG coce, Affinity Designer doesn't have a good output path so I converted the SVG code-path with a free online tool. I'm iterating this concept via scratchpad.io, but I'll take your advice and cut out the html portion next.

          – Bamu
          Mar 24 at 17:37



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55318735%2ftroubleshooting-creating-a-dropdown-list-from-an-svg-using-hover-to-reveal-the%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript