Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Procedure

...

  1. It is possible we have some problems due to our lack of consistency using semantic-ui and html elements, for example:
    • Some buttons added as <button>
    • Some buttons added as <div>
    • Some buttons added as <NavLink>
      Thus, perhaps will be difficult to us select the most appropriate element in order to get the same final layout.
  2. Another possible problem is the use of the attribute “ref” in our react components. The documentation  (https://facebook.github.io/react/docs/refs-and-the-dom.html) explains that is needed to use it as a callback, and sometimes it is not used in that way in our platform. Seems that new react-semantic-ui doesn’t support the old way. For example:

    Code Block
    languagexml
    {/*Old way*/}
    <div className=”ui inverted menu ” ref=”header”>
    
    
    {/* New way*/}
    <div className=”ui inverted menu ” ref={(header)=>{this.headerMenu=header}}>
    
    


     

Examples

Current main menu of our platform: 

Image Added


Semantic Ui React main menu of our platform: 

Image Added