Skip to content

Instantly share code, notes, and snippets.

@lucadegasperi
Last active September 22, 2020 09:56

Revisions

  1. lucadegasperi revised this gist Sep 22, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions thoughts.md
    Original file line number Diff line number Diff line change
    @@ -7,5 +7,6 @@
    ## Spacing
    - Spacing between components should be given by a parent component.
    - A component should not have any knowledge about its sorroundings.
    - A Text node should never be left alone with other non text nodes (it should always be wrapped in a <span>)
    - Useful elements to achieve this might be layout components (grid) or other types of components (HSpacing / VSpacing)
    - If in doubt ask mark dalgleish
  2. lucadegasperi created this gist Jan 30, 2020.
    11 changes: 11 additions & 0 deletions thoughts.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # My Design Thoughts as of 30/01/2020

    ## Tooltips Modals and Alerts
    - tooltips should exist outside the context of the element they are attached to. This is to prevent style leaks or hidden overflows on the element they are attached to
    - Same principle applies to modals / alerts and so forth they should live inside a portal

    ## Spacing
    - Spacing between components should be given by a parent component.
    - A component should not have any knowledge about its sorroundings.
    - Useful elements to achieve this might be layout components (grid) or other types of components (HSpacing / VSpacing)
    - If in doubt ask mark dalgleish