1. 11 Feb, 2021 2 commits
    • Kyle Keating's avatar
      Set a custom :focus outline style · 5042fddc
      Kyle Keating authored
      - Remove existing customized styling on text and input fields
      - Override default outline style and instead, replace with a box-shadow that is styled similar to the default outline but with a fixed color
      - This allows the outline to still retain a small border radius, and a custom color at the same time
      5042fddc
    • Eduardo Sanz García's avatar
      Clean-up after running test · 5c55cc5f
      Eduardo Sanz García authored
      Remove a few container elements left-over from the tests.
      5c55cc5f
  2. 10 Feb, 2021 1 commit
  3. 08 Feb, 2021 11 commits
  4. 05 Feb, 2021 8 commits
  5. 03 Feb, 2021 6 commits
    • Robert Knight's avatar
      Add license and description to frontend-shared package · d90a4519
      Robert Knight authored
      All npm packages should have a license, and yarn complains if there
      isn't one. The license chosen here is the same as in the client's
      package.json.
      d90a4519
    • Robert Knight's avatar
      Generate `.d.ts` files as part of the frontend-shared package · 480b6d77
      Robert Knight authored
      Generate TypeScript definition files as part of the frontend-shared
      package so that TS can typecheck code that uses the package in other
      projects. Within the client repository we don't need to generate these files
      because TypeScript will read the JSDoc comments. When the package is
      consumed from other projects however, it seems that it does not read the
      JSDoc comments. Note that when these `.d.ts` files exist, they are used in preference
      to JSDoc comments by other code in the client repository. Therefore they
      need to be kept up to date when the files are recompiled in watch mode.
      
      In the process of adding this I discovered an issue that the method of
      running CLI commands in gulp tasks in `scripts/gulp/frontend-shared.js` did not
      fail if the exit status was non-zero. I created a `run` utility that
      handles this correctly along with providing the desired defaults.
      480b6d77
    • Robert Knight's avatar
      898e61b8
    • Robert Knight's avatar
      Adjust glob used to exclude frontend-shared tests from typechecking · f9b33888
      Robert Knight authored
      Change the glob to allow for `test/` dirs inside subdirectories of
      `frontend-shared/src`.
      f9b33888
    • Robert Knight's avatar
      Do not instrument `frontend-shared/lib` for code coverage · ce0f4599
      Robert Knight authored
      This directory contains the compiled version of code from `frontend-shared/src`.
      Only the source should be instrumented.
      ce0f4599
    • Robert Knight's avatar
      Move `useElementShouldClose` and `normalizeKeyName` into frontend-shared package · 9aa02026
      Robert Knight authored
      `useElementShouldClose` is a useful generic hook for implementing non-modal dialogs. We
      also use it in the LMS frontend, so it makes sense to share the implementation.
      
      This function depends on `normalizeKeyName`, so I moved that as well.
      
      `useElementShouldClose` also depended on a `listen` helper. This helper
      is not currently used by any other code so I moved it into
      `use-element-should-close.js` as a non-exported helper function and
      simplified it.
      
      In the process I found it was necessary to change the gulp task that
      builds the frontend-shared/lib/ directory to handle subdirectories under
      frontend-shared/src/.
      9aa02026
  6. 02 Feb, 2021 5 commits
  7. 01 Feb, 2021 7 commits