Skip to content

Conversation

@soramea
Copy link
Contributor

@soramea soramea commented Dec 25, 2024

Button 要素ごと template で持ってくることを想定しています
入力欄とそのほかの区別がわかりづらいことがちょっと気になってるんですが、こういうもんなんでしょうか

close: #51

@soramea soramea self-assigned this Dec 25, 2024
Copy link
Contributor

@cp-20 cp-20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

細々としたところだけど、特にアクセシビリティ的なところは修正して欲しいです!

Copy link
Contributor

@cp-20 cp-20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

細々としたところだけど、特にアクセシビリティ的なところは修正して欲しいです!

Copy link
Contributor

@cp-20 cp-20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

色々レビュー漏れがあったのでコメントしました:bow::bow::bow:

import { defineProps } from 'vue';

defineProps<{
placeholder: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

placeholder は optional にしてほしい!


defineProps<{
placeholder: string;
size: number;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

size というのは若干直感的ではないかも? (HTML要素の <input> に直接渡してるけど、これは求めているものではなさそう)

雑にやるなら size はなくて良くて、ちゃんとやりたいなら 'sm' | 'md' | 'lg' みたいな感じでやると良さそうに見えます!

Comment on lines 12 to 14
<div v-if="$slots['left']" class="side-icon">
<slot name="left" />
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[optional] <slot> に直接 class を書いた方がスッキリするかも

border-radius: 4px;
}
.background:focus-within {
outline: 2px solid;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outline は primary-color とかの方が良い感じかも

Comment on lines 32 to 33
border-color: $color-border;
border: 1px solid;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

border-color プロパティが border ショートハンドによって上書きされてそう (ref: https://developer.mozilla.org/ja/docs/Web/CSS/border#%E6%A7%8B%E6%88%90%E8%A6%81%E7%B4%A0%E3%81%AE%E3%83%97%E3%83%AD%E3%83%91%E3%83%86%E3%82%A3)

border で一緒に指定してあげると良さそう!

@cp-20
Copy link
Contributor

cp-20 commented May 17, 2025

直したら review request もらえると嬉しいです:bow:

@oER4 oER4 self-assigned this Aug 9, 2025
display: inline flex;
height: 32px;
align-items: center;
border:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1px solid $color-border で良さそうな気がする! radius はここでは指定できないので別で指定してあげる必要がある

ref: https://developer.mozilla.org/ja/docs/Web/CSS/border

}
.text-input::placeholder {
color: $color-text-placeholder;
opacity: 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opacity: 1 は特に意味のないCSSかも…?

height: 32px;
align-items: center;
border: 1px solid1px solid $color-border;
border-radius: 1px solid;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

border-radius は solid を受け付けない (それは border-style) し、ここで指定すべきは 4px じゃないかな?

@oER4 oER4 merged commit 24db06e into main Aug 10, 2025
8 checks passed
@oER4 oER4 deleted the soramea/add-textinput branch August 10, 2025 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<TextInput>の実装

4 participants