Skip to content
代码片段 群组 项目
未验证 提交 2213208a 编辑于 作者: Paul Gascou-Vaillancourt's avatar Paul Gascou-Vaillancourt 提交者: GitLab
浏览文件

Improve to-do items' styling

* Removed `cursor: pointer` from the parent list item. This might have
  caused confusion now that the clickable link is narrower than the list
  item.
* Apply the hover style only when the descendant link is hovered.
* Remove unnecessary CSS utils.

Changelog: changed
上级 75308945
No related branches found
No related tags found
无相关合并请求
......@@ -113,7 +113,7 @@ export default {
<template>
<li
class="gl-border-t gl-border-b gl-relative -gl-mt-px gl-flex gl-gap-3 gl-px-5 gl-py-3 hover:gl-z-1 hover:gl-border-blue-200 hover:gl-bg-blue-50"
class="gl-border-t gl-border-b gl-relative -gl-mt-px gl-flex gl-gap-3 gl-px-5 gl-py-3 hover:gl-z-1 has-[>a:hover]:gl-border-blue-200 has-[>a:hover]:gl-bg-blue-50"
:data-testid="`todo-item-${todo.id}`"
:class="{ 'gl-bg-subtle': isDone }"
>
......
......@@ -332,7 +332,7 @@ export default {
name="todos"
tag="ol"
data-testid="todo-item-list"
class="gl-m-0 gl-border-collapse gl-list-none gl-p-0"
class="gl-m-0 gl-list-none gl-p-0"
>
<todo-item
v-for="todo in todos"
......
......@@ -95,12 +95,12 @@ export default {
</script>
<template>
<div class="gl-relative gl-mt-6 gl-flex gl-justify-between md:!gl-justify-center">
<div class="gl-relative gl-mt-6 gl-flex gl-justify-between md:gl-justify-center">
<gl-keyset-pagination v-bind="$props" @prev="prevPage" @next="nextPage" />
<page-size-selector
:value="pageSize"
class="gl-relative gl-right-0 md:gl-absolute"
class="gl-right-0 md:gl-absolute"
@input="handlePageSizeChange"
/>
</div>
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册