Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. (
  2. <div
  3. id={`font-picker${this.fontManager.selectorSuffix}`}
  4. className={expanded ? "expanded" : ""}
  5. >
  6. <button
  7. type="button"
  8. className="dropdown-button"
  9. onClick={this.toggleExpanded}
  10. onKeyPress={this.toggleExpanded}
  11. >
  12. <p className="dropdown-font-family">{activeFontFamily}</p>
  13. <p className={`dropdown-icon ${loadingStatus}`} />
  14. </button>
  15. {loadingStatus === "finished" && this.generateFontList(fonts)}
  16. </div>
  17. );
  18.  
  19. <div className="font-picker">
  20. <FontPicker />
  21. </div>
  22.  
  23. // the classnames that are exposed
  24. .font-picker {
  25. div.expanded
  26. .dropdown-button
  27. p.dropdown-font-family
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement