Move z-index to a constant and explain it in a comment

parent ba267b9a
...@@ -34,12 +34,15 @@ export default { ...@@ -34,12 +34,15 @@ export default {
return getContentWrapperHeight('.js-threat-monitoring-container-wrapper'); return getContentWrapperHeight('.js-threat-monitoring-container-wrapper');
}, },
}, },
// We set the drawer's z-index to 252 to clear flash messages that might be displayed in the page
// and that have a z-index of 251.
DRAWER_Z_INDEX: 252,
}; };
</script> </script>
<template> <template>
<gl-drawer <gl-drawer
:z-index="252" :z-index="$options.DRAWER_Z_INDEX"
:header-height="getDrawerHeaderHeight()" :header-height="getDrawerHeaderHeight()"
v-bind="$attrs" v-bind="$attrs"
v-on="$listeners" v-on="$listeners"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment