DLR-SC / ESID

This is the repository to the ESID frontend for visualization of infectious disease propagation.
Apache License 2.0
15 stars 3 forks source link

Add IDs (and documentation) to HTML components #303

Open NXXR opened 9 months ago

NXXR commented 9 months ago

Every HTML component should get an ID tag to help debugging and readability.

  <Box
+ id='scenario-view-root'
  sx={{
    display: 'flex',
    cursor: 'default',
    background: theme.palette.background.default,
    maxWidth: '100%',
  }}
  >
  ...
  </Box>

Additionally HTML components should receive a comment documenting the element if the ID is not descriptive enough.

+ <Box // Root container of the scenario card section
+ id='scenario-view-root'
  sx={{
    display: 'flex',
    cursor: 'default',
    background: theme.palette.background.default,
    maxWidth: '100%',
  }}
  >
  ...
  </Box>