• Brian Vaughn's avatar
    Tweaking error overlay styles (#2201) · 68f95d41
    Brian Vaughn authored
    * Tweaked overlay styles
    
    * Tweaked pre-style
    
    * Clicked to background overlay dismiss
    
    * Tidied up styles tobe more mobile Safari friendly
    
    * Re-enabled pre-wrap
    
    * Margin fixes
    
    * Base font-size 10 -> 11px
    
    * Error overlay is full-screen now based on feedback
    
    * Make "N errors on the page" visible again
    
    * Fix bottom margin of frame location and lack of tab nav
    
    * Add tooltip to close button
    
    * Bring compile error styles closer to runtime overlay
    
    * s/when/if/
    68f95d41
footer.js 617 bytes
/* @flow */
import { applyStyles } from '../utils/dom/css';
import { footerStyle } from '../styles';
function createFooter(document: Document) {
  const div = document.createElement('div');
  applyStyles(div, footerStyle);
  div.appendChild(
    document.createTextNode(
      'This screen is visible only in development. It will not appear if the app crashes in production.'
  div.appendChild(document.createElement('br'));
  div.appendChild(
    document.createTextNode(
      'Open your browser’s developer console to further inspect this error.'
  return div;
export { createFooter };